[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LCLIntf' (#lcl)

CreateDIBitmap

Creates a Device Dependent Bitmap (DDB) from a Device Independent Bitmap (DIB).

Declaration

Source position: winapih.inc line 54

function CreateDIBitmap(

  DC: HDC;

  var InfoHeader: TBitmapInfoHeader;

  dwUsage: DWORD;

  InitBits: PChar;

  var InitInfo: TBitmapInfo;

  wUsage: UINT

):HBITMAP;

Arguments

DC

  

The context for the DDB.

InfoHeader

  

The bitmap info header.

InitBits

  

An array containing the bitmap pixels.

InitInfo

  

CBM_INIT when InitBits contains valid data, else zero.

Function result

The bitmap handle, zero on failure.


Version 3.2 Generated 2024-02-25 Home