Graphisoft®

GX ModuleVersion: 16

GXGSPixMap2DIB

Converts a Graphisoft pixmap to packed DIB (Microsoft Device Independent Bitmap).

    GSErr GXGSPixMap2DIB (
      GSPixMapHandle  pixMap,
      const GSRect*   partRect,
      GSPtr*          bitmapInfo,
      Int32*          bmpSize = NULL
    );

Parameters

pixMap
The source pixmap.
partRect
The part that will be converted into the DIB.
bitmapInfo
The address of NULL-initialized DIB pointer.
bmpSize
The address of the count of the bytes of the new DIB.

Return Values

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

Remarks

This packed DIB is the format of the BMP files.

Note that GSPtr* pointers have to be disposed by calling BMpFree (GSPtr *)!

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