Jaa


Image.exportBitmap Method

Definition

Gets a handle for the image.

public:
 virtual long exportBitmap();
public virtual long exportBitmap ();
abstract member exportBitmap : unit -> int64
override this.exportBitmap : unit -> int64
Public Overridable Function exportBitmap () As Long

Returns

An integer that represents the handle for the image.

Remarks

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); 
    } 
}

Applies to