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.)
This site - and its many free downloads - are funded by donations from visitors like you.
Please consider a small donation to fund server costs and to help me support my family.
Even $1.00 helps. Thank you!
bookmark and share this article
You are great! This is piece of nice,clear and great code. WOW!
By Nenad M | April 1, 2010, 2:47 pm |:) Glad you found the code helpful!
By Tanner | April 2, 2010, 3:25 pm |