A structure that describes a single color value.
typedef union switch (XPS_COLOR_TYPE colorType) value
{
case XPS_COLOR_TYPE_SRGB:
struct {
byte alpha, red, green, blue;
} sRGB;
case XPS_COLOR_TYPE_SCRGB:
struct {
FLOAT alpha, red, green, blue;
} scRGB;
case XPS_COLOR_TYPE_CONTEXT:
struct {
byte channelCount;
FLOAT channels[9];
} context;
} XPS_COLOR;
Remarks
The structure's format depends on the value of colorType.
XPS_COLOR_TYPE_SRGB
XPS_COLOR_TYPE_SCRGB
XPS_COLOR_TYPE_CONTEXT
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
| Header | Xpsobjectmodel.h |
| IDL | XpsObjectModel.idl |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
