Graphisoft®

GX ModuleVersion: 16

GraphicsToGSPixMap

Converts a GdiPlus image to a Graphisoft pixmap.

    GSPixMapHandle GraphicsToGSPixMap (
      Gdiplus::Image*  image,
      GSPixelType      format = GSPT_Unknown
    );

Parameters

image
Pointer to the source GdiPlus image.
format
Requested pixel format; uses the pixel format of the source image if set to the default value.

Return Values

If the function succeeds, the return value is a real pixmap handle. If the function fails, the return value is NULL.

Remarks

Don't forget to release the returned pixmap handle with GXDeleteGSPixMap when done.

This function exists only on Windows platform.

Requirements

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

See Also

Graphics Windows-specific functions