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 3 - ColorSync Manager Reference for Applications and Device Drivers / Constants and Data Types
Color Values


L*u*v* Color Value

A color value expressed in the L*u*v* color space is composed of L, u, and v component values. Each color component is expressed as a numeric value within the range of 0 to 65535. For the L component, this maps to 0 to 100 inclusive. For the u and v components, this maps to -128 to 127.996 inclusive. The color value is defined by the CMLuvColor type definition.

struct CMLuvColor {
   unsigned shortL;/* L component of color in Luv color space */
   unsigned shortu;/* u component of color in Luv color space */
   unsigned shortv;/* v component of color in Luv color space */
};

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996