COLORDATATYPE enumeration
The values of the COLORDATATYPE enumeration are used by WCS functions to indicate the data type of vector content.
Syntax
typedef enum { COLOR_BYTE = 1, COLOR_WORD = 2, COLOR_FLOAT = 3, COLOR_S2DOT13FIXED = 4, COLOR_10b_R10G10B10A2 = 5, COLOR_10b_R10G10B10A2_XR = 6, COLOR_FLOAT16 = 7 } COLORDATATYPE;
Constants
- 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.
- COLOR_10b_R10G10B10A2
-
Packed WORD per channel. data range [0, 1]
- COLOR_10b_R10G10B10A2_XR
-
Packed extended range WORD per channel. data range [-1, 3]
- COLOR_FLOAT16
-
FLOAT16 per channel.
Remarks
The PCOLORDATATYPE and LPCOLORDATATYPE data types are defined as pointers to this enumeration:
typedef COLORDATATYPE *PCOLORDATATYPE, *LPCOLORDATATYPE;
Requirements
|
Version | Included in Windows Vista and later. |
|---|---|
|
Header |
|
Send comments about this topic to Microsoft
Build date: 11/28/2012
