Important: The information in this document is obsolete and should not be used for new development.
SmallFract Type
TheSmallFract
type is derived from the low-order word of a fixed integer. The Color Picker Manager usesSmallFract
values to save memory and to be compatible with the Color QuickDrawRGBColor
structure. You can use theFix2SmallFract
function (page 2-56) to convert a fixed integer to aSmallFract
value. You can use theSmallFract2Fix
function (page 2-56) to convert aSmallFract
value to a fixed integer.
typedef unsigned short SmallFract;/* unsigned fraction between 0 and 1 */ enum {MaxSmallFract = 0x0000FFFF};/* maximum small fract value, as long */