MGL_unpackColorExt
Unpacks a packed MGL color value into RGB components.
Declaration
void MGLAPI MGL_unpackColorExt(
pixel_format_t *pf,
color_t color,
uchar *A,
uchar *R,
uchar *G,
uchar *B)
Prototype In
mgraph.h
Parameters
pf |
Pixel format to use for unpacking |
color |
Color to unpack |
A |
Place to store extracted alpha component |
R |
Place to store extracted red component |
G |
Place to store extracted green component |
B |
Place to store extracted blue component |
Description
This function takes a packed color value in the correct format for the specified pixel format and extracts the red, green and blue components. Note that the color values may not be the same as when you packed them with MGL_packColor if the pixel format is a 15 or 16 bit format because of loss of precision. The values are scaled back into the normal 24 bit RGB space.
See Also
MGL_unpackColorFast, MGL_unpackColorExt, MGL_packColor, MGL_getPixelFormat
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com