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
 
 
 
 
 
 
TitleDraw animated shapes with transparent backgrounds stored in PictureBoxes
DescriptionThis example shows how to draw animated shapes with transparent backgrounds stored in PictureBoxes in Visual Basic 6. It displays a series of images in PictureBox controls, using SetWindowRgn to give each a transparent background.
Keywordsimage processing, animation, animate, image, SetWindowRgn, GetDIBits, SetDIBits, GetBitmapPixels
CategoriesGraphics, Multimedia
 
Thanks to Gamal Ahmed.

When the program starts, it uses SetWindowRgn to trim the PictureBoxes to remove their transparent background pixels.

When this program's Timer control fires, the program displays the next PictureBox in thue animated sequence.

See the code for the details.

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