Changes

Drawing, Graphics, and Images VB6

517 bytes added, 07:07, 11 February 2008
The following lines were added (+) and removed (-):
Copy an image from a control such as a PictureBox and put it anywhere on a form.  Useful for animation.  BitBlt does the same thing as PaintPicture but faster.  BitBlt discussed later.  Bitblt is basically equal in speed to paintpicture when using the .picture method of a picture box. Bitlblt is faster when using the .image property of picture box control with paintpicture.Copy an image from a control such as a PictureBox and put it anywhere on a form.  Useful for animation.  BitBlt does the same thing as PaintPicture but faster.  BitBlt discussed later.  Under Windows 98 and ME programmers find Bitblt is basically equal in speed to paintpicture when using the .picture method of a picture box. Bitlblt is faster when using the .image property of picture box control with paintpicture.  Under Windows XP, Bitblt out performs PaintPicture using either property.=== Steps to Smooth Animation ===''Summary:''# Load Images (Mask and Sprite):# Load into PictureBox then use BitBlt -or-:# Load into memory DC then use BitBlt (less memory, time, and resource)# Place the Mask (2 color)# Place the Sprite Raster Image (visible part of image)# Me.Refresh:# Optional use Back Buffer (flickers more on small images):# Optional use StretchBlt to resize Sprite
Bureaucrat, administrator
16,192
edits