Bitmap property (ILEADRaster)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

long Bitmap

Overview

Refer to Bitmaps and Bitmap Lists.

Remarks

Gets or sets the bitmap of the ILEADRaster object.

If you wish to use a bitmap in another control or LEADTOOLS COM Object, you must assign the Bitmap property to the destination control.

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

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

When assigning from this property to one of the other objects, a reference is made to the source object's bitmap. For more information, refer to LEADRasterOLEDB Raster.

When assigning to this property, a copy of the source object's bitmap is made unless the destination object'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