Bitmap property (Main Control)

Visual Basic example
Visual C++ 4.0 example


Access 2.0 example

Access 95, 97 example


Visual J++ example

Syntax OLE_HANDLE Bitmap

Overview:  Refer to Bitmaps and Bitmap Lists.

Remarks

Is the handle to the bitmap.

Setting this property to 0 clears the bitmap from memory. You can assign its value to another Main Control's Bitmap property to create a copy.

If a region is defined for the bitmap, the region is also freed or copied.

When assigning to this property, a copy of the source control's bitmap is made unless the Main Control's RefBitmap property is set to True. Use the RefBitmap property to avoid having a second copy of the source image in memory.

If you assign a bitmap to the Bitmap property, the current bitmap in the bitmap list will be replaced. If you set the Bitmap property to 0, the current bitmap is removed from the bitmap list. For example, if you load a file that contains 4 images into a bitmap list, and then set the Bitmap property to 0, the current bitmap will be removed from the bitmap list and BitmapListCount property will be decreased by 1.

See Also

Elements: RefBitmap property

Topics:  Raster Images: Creating and Deleting Images
Raster Images: Creating and Maintaining Lists of Images

Raster Images: Copying Images

LEADTOOLS API Integration Functions