|
|
Title | Draw animated shapes with transparent backgrounds |
Description | This example shows how to draw animated shapes with transparent backgrounds in Visual Basic 6. It displays a series of images in Image controls, using SetWindowRgn to give each a transparent background. |
Keywords | image processing, animation, animate, image, SetWindowRgn, GetDIBits, SetDIBits, GetBitmapPixels |
Categories | Graphics, Multimedia |
|
|
Thanks to Gamal Ahmed.
When this program's Timer control fires, the program copies an Image control's picture into a PictureBox. It uses SetWindowRgn to trim the image to remove its transparent background pixels. It then displays the PictureBox on top of the form's background.
See the code for the details.
|
|
|
|
|
|