Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
XML RSS Feed
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated