GetDIB method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax OLE_HANDLE GetDIB (long nType);

Overview:  Refer to Copying and Creating Bitmaps.

Remarks

Converts a LEAD Technologies bitmap into a Windows device independent bitmap (DIB). When this method is completed, there are two copies of the bitmap in memory: the DIB and the original LEAD bitmap. Freeing one will not affect the other.

A DIB consists of one of the following:

followed by a color table and then the bitmap data. The resulting DIB type is determined by the value of the uType flag.

Ordinarily, you would need a DIB only if you are using Windows C DLL functions. Nevertheless, for simplicity, the examples in this documentation get and set a DIB without using the C DLL.

See Also

Elements:  SetDIB method, GetDDB method, SetDDB method

Topics:  Raster Images: Exchanging Images with Other Objects