V.2.9
clsDIBSection

This class permits you to manage an API Device Context in a safe way and provides conversion functions for VB6.

Methods:
BitsPtr Gets the Bits pointer of the image
BkColor Sets/Gets the background color of the DC
BkMode Sets/Gets the background mode of the DC
Bpp Gets the color depth of the inner image
BytesPerScanLine Gets the size on bytes of a line of the inner image
CloneFromDib Clones a DIBSection class
CloneFromHBmp Creates the memory DC from a Bitmap (image.picture.handle)
CloneFromHdc Creates the memory DC from an HDC (picturebox.hdc)
CreateDC Creates a memory DC (and the associated Dib section) using specified size, color depth and palette
Destroy Releases the memory used by the class
DrawBackColor Draw a color on the memory DC
HDib Returns the handle of the inner Dib section
Hdc Returns the handle to the internal Device Context
PaintPicture Paints the current bitmap to a DC
Palette Gets the palette associated to the inner image (if the bit depth is minor that 24 bits)
Picture Gets a standard VB6 picture from the DC
ReleasehDib Gets the handle of the internal Dib section and releases the memory (the program MUST release the handle manually using the DeleteObject API)
Width / Height The image size
http://www.hexagora.com
Mon, 7 Jul 2008 12:57:40 UT
Copyright 2003-10 by Lorenzi Davide