COLORTYPE enumeration

The values of the COLORTYPE enumeration are used by WCS functions to indicate the format of vector content. Most values have equivalent structures that are contained in the ICM COLOR structure (described in the Microsoft Windows SDK documentation).

Syntax

typedef enum  { 
  COLOR_GRAY       = 1,
  COLOR_RGB        = 2,
  COLOR_XYZ        = 3,
  COLOR_Yxy        = 4,
  COLOR_Lab        = 5,
  COLOR_3_CHANNEL  = 6,
  COLOR_CMYK       = 7,
  COLOR_5_CHANNEL  = 8,
  COLOR_6_CHANNEL  = 9,
  COLOR_7_CHANNEL  = 10,
  COLOR_8_CHANNEL  = 11,
  COLOR_NAMED      = 12
} COLORTYPE;

Constants

  • COLOR_GRAY
    Specifies a 16-bit gray-scale pixel value. Correlates to the ICM GRAYCOLOR.

  • COLOR_RGB
    Specifies a 48-bit RGB pixel value. Correlates to the ICM RGBCOLOR structure.

  • COLOR_XYZ
    Specifies a 48-bit CIEXYZ pixel value. Correlates to the ICM XYZCOLOR structure.

  • COLOR_Yxy
    Specifies a 48-bit CIE Yxy pixel value. Correlates to the ICM YxyCOLOR structure.

  • COLOR_Lab
    Specifies a 48-bit CIELAB pixel value. Correlates to the ICM LabCOLOR structure.

  • COLOR_3_CHANNEL
    Specifies a 48-bit generic three-channel pixel value. Correlates to the ICM GENERIC3CHANNEL structure.

  • COLOR_CMYK
    Specifies a 48-bit CMYK pixel value. Correlates to the ICM CMYKCOLOR structure.

  • COLOR_5_CHANNEL
    Specifies a 64-bit generic five-channel pixel value.

  • COLOR_6_CHANNEL
    Specifies a 64-bit generic six-channel pixel value.

  • COLOR_7_CHANNEL
    Specifies a 64-bit generic seven-channel pixel value.

  • COLOR_8_CHANNEL
    Specifies a 64-bit generic eight-channel pixel value.

  • COLOR_NAMED
    Specifies a 32-bit named color-indexed pixel value. Correlates to the ICM NAMEDCOLOR structure.

Remarks

In addition to managing the common two, three, and four channel color spaces, ICM 2.0 and WCS are able to perform color management with device profiles that contain five through eight color channels. ICM 2.0 and WCS are also able to use named color spaces. When five, six, seven, or eight color channels are used, the provider of the device profile is free to determine what the color channels represent. The same is true of named color spaces. ICM 2.0 and WCS are able to manage these color spaces as long as there is a mapping in the device profile that maps the channels or the name space to the Profile Connection Space (PCS). The device profile must also contain a mapping from the PCS into the five, six, seven, or eight channel spaces, or into the named color space.

The PCOLORTYPE and LPCOLORTYPE data types are defined as pointers to this enumeration:

typedef COLORTYPE *PCOLORTYPE, *LPCOLORTYPE;

Requirements

Version

Included in Windows Vista and later.

Header

Icm.h

 

 

Send comments about this topic to Microsoft