Functions | |
UInt32 * | mdlColor_matchLongColorMap (UInt32 *pUserMap, byte *pColorTable, int screen, bool exactColorsEnabled) |
Generate a color map in cmap. More... | |
int | mdlColor_getColorMap (UInt32 *pColormap, int *pNumMappings, int screen, int maxSize) |
Obtain an existing colormap for the master design file's colortable. More... | |
int | mdlColor_assignColorMap (int screen, UInt32 *pColorMap, DgnModelRefP modelRef) |
This function is no longer used. More... | |
int mdlColor_assignColorMap | ( | int | screen, |
UInt32 * | pColorMap, | ||
DgnModelRefP | modelRef | ||
) |
This function is no longer used.
[in] | screen | The index of the screen (if needed). |
[in] | pColorMap | An array of unsigned long values for colormap information. |
[in] | modelRef | The model to get the color descriptor from. |
int mdlColor_getColorMap | ( | UInt32 * | pColormap, |
int * | pNumMappings, | ||
int | screen, | ||
int | maxSize | ||
) |
Obtain an existing colormap for the master design file's colortable.
A colormap is an array of draw values corresponding to each RGB triad in the colortable. A colortable has a colormap for each screen in the system.
[out] | pColormap | Must point to an array of unsigned long values to receive all or part of the system colormap information. |
[in] | pNumMappings | Points to an integer where the number of entries in the system colormap are stored. If numMappings is NULL, it is ignored. |
[in] | screen | Indicates for which screen the colormap is to be obtained. |
[in] | maxSize | Specifies how many entries from the system colormap are to be copied to colormapP. |
UInt32* mdlColor_matchLongColorMap | ( | UInt32 * | pUserMap, |
byte * | pColorTable, | ||
int | screen, | ||
bool | exactColorsEnabled | ||
) |
Generate a color map in cmap.
cmap contains the Color Manager display color draw values corresponding to each RGB color definition in ctbl.
[out] | pUserMap | Is an array of 256 elements (bytes or unsigned longs) to receive the matched color indices. |
[in] | pColorTable | Is a 768-byte color table (256 RGB specifications) to be matched against the Color Manager's display colors. |
[in] | screen | Indicates the right (0) or left (1) screen. |
[in] | exactColorsEnabled | Currently ignored. |