MGL_setColorCI
Sets the current foreground color given a color index.
Declaration
void MGLAPI MGL_setColorCI(
int index)
Prototype In
mgraph.h
Parameters
index |
Color index of color to set |
Description
Sets the current foreground color value given a color index. This routine works with all device contexts, including RGB device contexts. For the color index devices, the value for the foreground color is simply set unchanged. However for RGB devices, the color index is translated via the current color palette for the device to find the appropriate packed MGL color value for that device. Thus you can still write code for RGB devices that works with color indexes.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com