To give you an ad-free browsing experience, this website is completely funded by donations. If you use the information in this article to solve a problem, entertain yourself, or otherwise improve your life, please consider a small donation to help pay for server costs. Many thanks, and enjoy the site!

Graphics Code

Image Resampling in VB6

Resampling involves using interpolation algorithms when resizing an image to minimize negative impact on image quality. For example, when you resize a 50×50 image to 500×500 the image looks horrible – it looks like a bunch of giant squares. Resampling reduces that blockiness by interpolating pixels, so the image looks rounded even after it’s resampled. If that made no sense whatsoever, download the program to see what I mean! (Note: it’s much faster to just use the LoadImage API call (which uses a somewhat inaccurate but fast resampling algorithm), but obviously it’s always to a programmer’s advantage to know how a function actually works.)

Download Code (15kb)

 

BSD License
All source code in the above zip file has been released under a BSD License.

 

Related articles:

Discussion (Oldest Comments Displayed First)

Be the first to comment on “Image Resampling in VB6”

Post a comment

Feel free to use any of these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>