Share via


Image.exportBitmap Method

Gets a handle for the image.

Syntax

public int64 exportBitmap()

Run On

Client

Return Value

Type: int64
An integer that represents the handle for the image.

Examples

The following example retrieves the handle for an image and then uses the handle to clone the image.

{ 
    int hdlBitmap; 
    Image img = new Image(); 
    Image img2 = new Image(); 
 
    img.loadImage(@'C:\MyImage.bmp'); 
    //Set hdlBitmap to handle for MyImage.bmp 
    hdlBitmap = img.exportBitmap(); 
 
    //Load MyImage.bmp to img2 using image handle 
    if (hdlBitmap) 
    { 
        img2.importBitmap(hdlBitmap); 
    } 
}

See Also

Image Class

Image.importBitmap Method