VB6 Picturebox: how to maximize image resize quality

Posted on 2008-11-03
Last Modified: 2012-06-27
When creating thumbnail views of images, I have just been using "paintpicture" to resize. This works OK, but I have seen high resolution thumbnails with much more detail in other programs. Is there a way to maximize image detail when reducing the size?

Question by:ttobin333
    LVL 11

    Expert Comment

    You could try using the FreeImage library. It's open source and comes with a VB module which you can use in your project. It also has an impressive range of image conversion functions.

    Author Comment

    I was hoping to accomplish this without using the FreeImage Library. Are there any VB6 or API techniques that you could recommend?
    LVL 11

    Accepted Solution

    Try this. It uses anti-aliasing, so it could be just what you're looking for:

    Author Closing Comment

    Perfect! Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now