Graphisoft®

GX ModuleVersion: 16

GXDDB2DIB

Convert from device dependent bitmap to device independent bitmap. On a palette device a correct logical palette has to be selected into the given DC.

    GSErr GXDDB2DIB (
      HDC            hDC,
      HBITMAP        hBmp,
      GSPtr*         pDIB,
      Int32*         pSize,
      GSRect*        rect
    );

Parameters

hDC
Device context.
hBmp
Device dependent bitmap. If NULL, the DC's current bitmap is used for the conversion.
pDIB
Pointer to device independent bitmap.
pSize
Pointer to receive the size of the device independent bitmap.
rect
A partial region may be chosen for conversion by the use of this parameter. Can be NULL.

Return Values

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Remarks

This function exists only on Windows platform.

Requirements

Version:
GX 10 or later
Header:
Graphics2DWin.h
Import Library:
GXImp.lib
Module:
GX.dll [WIN], GX.framework [MAC]

See Also

Graphics Windows-specific functions