Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 8 - QuickDraw GX Mathematics / QuickDraw GX Mathematics Reference
Number-Conversion Macros / Format Conversions


You can use the FractToColor macro to convert a fract number to a gxColorValue number.

#define FractToColor(a) ((gxColorValue)((a)-((a)>>16)+8191>>14))
A fract number to be converted to a gxColorValue number.
macro result
The closest gxColorValue number to the fract number.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996