Copying and Creating Bitmaps

Use the following methods for Clipboard input and output:

Copy method

Paste method

Use the following methods to copy the bitmap to or from a LEAD OLE Server control.

GetServerBitmap method

SetServerBitmap method

Use the following methods to copy the bitmap to or from a Picture object:

GetPicture method

SetPicture method

Use the following methods to copy the bitmap to or from a DIB or DDB:

GetDDB method

GetDIB method

SetDDB method

SetDIB method

Use the following property to create a bitmap from scratch:

CreateBitmap method

To create a user bitmap, use the CreateUserBitmap method. The user is responsible for allocating and maintaining the bitmap data pointer. The bitmap data pointer is set using the SetBitmapDataPointer method. These methods are useful when using images obtained from the LEADTOOLS Multimedia toolkit with the Main LEADTOOLS COM.

You can copy an object's entire list of bitmaps by assigning the BitmapList property from one object to another. You can free all of the bitmaps in the list by setting the property to 0.

You can copy one object's current bitmap to another object's current bitmap by assigning the Bitmap property from one object to the other. You can remove the current bitmap from the list (freeing the bitmap) by setting the Bitmap property to 0. When an object has only one bitmap, you do not have to set the BitmapListIndex property to specify the current bitmap.