Graphisoft®

GX ModuleVersion: 16

CGXCreatePalette

Extracts the color palette from the given bitmap.

    GSHandle CGXCreatePalette (
      const GSPtr      pBmpPtr
    );

Parameters

pBmpPtr
The bitmap to extract the color palette from.

Return Values

If the function succeeds, the return value is a handle to a logical palette (HPALETTE). If the function fails, the return value is NULL.

Remarks

This is a Windows-only function.

When you no longer need the palette, call the DeleteObject WINAPI function to delete it.

Requirements

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