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: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Constants and Data Types


SmallFract Type

The SmallFract type is derived from the low-order word of a fixed integer. The Color Picker Manager uses SmallFract values to save memory and to be compatible with the Color QuickDraw RGBColor structure. You can use the Fix2SmallFract function (page 2-56) to convert a fixed integer to a SmallFract value. You can use the SmallFract2Fix function (page 2-56) to convert a SmallFract value to a fixed integer.

typedef unsigned short SmallFract;/* unsigned fraction between 0 and 
                              1 */
enum {MaxSmallFract = 0x0000FFFF};/* maximum small fract value, 
                              as long */

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996