|
|
Title | Resize an image with antialiasing using GetDIBits and SetDIBits |
Description | This 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. |
Keywords | antialias, anti-alias, anti alias, alias, GetDIBits, SetDIBits, resize |
Categories | Graphics, 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.
|
|
|
|
|
|