Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
TitleResize an image with antialiasing using GetDIBits and SetDIBits
DescriptionThis example shows how to resize an image with antialiasing in Visual Basic 6. The example loads and stores pixel data very quickly using the GetDIBits and SetDIBits API functions.
Keywordsantialias, anti-alias, anti alias, alias, GetDIBits, SetDIBits, resize
CategoriesGraphics, API
 
The program uses GetDIBits to load the pixel data from an image. It allocates space for the resized image's pixel data and calculates the new pixel values using antialiasing. It then uses SetDIBits to display the output pixel data in the output PictureBox. See the code for details.

My book Ready-to-Run Visual Basic Graphics Programming explains antialiasing and many other image processing and graphics topics.

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated