GXCalcPixMapColorTable
Creates a color table containing an approximation of the most significant colors in the pixmap.
GSErr GXCalcPixMapColorTable ( GSPixMapHandle pixMapH, UInt32 numDesiredColor, DESC* colortab );
Parameters
- pixMapH
- The pixmap to be queried.
- numDesiredColor
- The returned color table contains at most numDesiredColor number of colors.
- colortab
- Initialized by the function to be a DESC of GS_RGBColor. It is filled by the approximation of the most significant colors of the pixmap. Contains no more than 32769 or numDesiredColor number of colors.
Return Values
If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.
Requirements
- Version:
- GX 10 or later
- Header:
- Graphics2D.h
- Import Library:
- GXImp.lib
- Module:
- GX.dll [WIN], GX.framework [MAC]