Important: The information in this document is obsolete and should not be used for new development.
ColorToFract
You can use theColorToFractmacro to convert a gxColorValue number to afractnumber.
#define ColorToFract(a) (((fract)(a)<<14) + ((fract)(a) +2 >>2))
a- A gxColorValue number to be converted to a
fractnumber.- macro result
- A
fract number having the same value as thegxColorValue number.