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. (Even $1 helps!) Many thanks, and enjoy the site!

// Graphics Code

Image Resampling in VB6

Resampling uses specialized interpolation algorithms when resizing an image to minimize any negative impacts to image quality. For example, when you resize a 50×50 image to 500×500, the image looks horrible – like a bunch of giant squares. Resampling reduces that “blockiness” by interpolating pixels, so the image looks rounded even after being resized.

If that made no sense whatsoever, download the program to see what I mean! :)

(Note: as far as VB6 is concerned, it would typically be faster and simpler to use the LoadImage API call (which relies upon an inaccurate but very fast resampling algorithm). However, I hope this code provides a good insight into how resampling actually works.)

 

bookmark and share this article

if you liked this article, you may also like

Discussion (Oldest Comments Displayed First)

Public comments are closed for this article. Private comments may be submitted using this link.
  1. You are great! This is piece of nice,clear and great code. WOW!

    Posted by Nenad M | April 1, 2010, 2:47 pm