COLORDATATYPE
Used by WCS functions to indicate the data type of vector content.
typedef enum
{
COLOR_BYTE = 1,
COLOR_WORD,
COLOR_FLOAT,
COLOR_S2DOT13FIXED
} COLORDATATYPE;
typedef COLORDATATYPE *PCOLORDATATYPE, *LPCOLORDATATYPE;
Elements
- COLOR_BYTE
Color data is stored as 8 bits per channel, with a value from 0 to 255, inclusive. - COLOR_WORD
Color data is stored as 16 bits per channel, with a value from 0 to 65535, inclusive. - COLOR_FLOAT
Color data is stored as 32 bits value per channel, as defined by the IEEE 32-bit floating point standard. - COLOR_S2DOT13FIXED
Color data is stored as 16 bits per channel, with a fixed range of -4 to +4, inclusive. A signed format is used, with 1 bit for the sign, 2 bits for the integer portion, and 13 bits for the fractional portion.
Remarks
The PCOLORDATATYPE and LPCOLORDATATYPE data types are defined as pointers to the COLORDATATYPE enumeration:
typedef COLORDATATYPE *PCOLORDATATYPE, *LPCOLORDATATYPE;
Requirements
** Windows Vista:** Included in Windows Vista and later.
** Header:** Declared in Icm.h.
** Library:** Use Mscms.lib.
** Unicode:** Implemented as Unicode and ANSI versions on Windows Vista.