GetDDB method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

HBITMAP GetDDB (L_HDC hDevice);

Delphi Syntax

GetDDB (hDevice: L_HDC): HBitmap;

Overview

Refer to Copying and Creating Bitmaps.

Remarks

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

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

See Also

Elements:

GetDIB method, SetDIB method, SetDDB method

Topics:

Raster Images: Exchanging Imgages with Other Objects