Category: Graphics Code  ·  Originally posted June 19, 2008  ·  Last updated February 2, 2011

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.)

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

Email this article to a friend Print a copy of this article Subscribe to article comments Bookmark this article on Delicious Submit this article to reddit Submit this article to Digg Submit this article to StumbleUpon Share this article on Facebook Tweet this article

related articles

Discussion (2 comments)

  1. You are great! This is piece of nice,clear and great code. WOW!

    By Nenad M | April 1, 2010, 2:47 pm | Reply to this comment

Share your thoughts below

Comments support the following tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>