SetBitmapDataPointer method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short SetBitmapDataPointer (VARIANT vData, long lDataSize);

Overview:  Refer to Copying and Creating Bitmaps.

Remarks

This method can be called only for user bitmaps created with the CreateUserBitmap method.

If vData is empty, the method clears the bitmap data pointer by setting it to NULL.

This method makes the control use the data pointer from the variant. The variant must be a byte array, or this method will fail. Make sure that data pointer is cleared before the variant is freed.

See Also

Elements:  CreateBitmap method, CreateUserBitmap method

Topics:  Raster Images: Creating and Deleting Images