描述单个颜色值的结构。
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;
注解
结构的格式取决于 colorType 的值。
要求
| 要求 | 价值 |
|---|---|
| 支持的最低客户端 |
适用于 Windows Vista 的 Windows 7、带有 SP2 和平台更新的 Windows Vista [桌面应用 |UWP 应用] |
| 支持的最低服务器 |
Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [桌面应用 |UWP 应用] |
| 标题 |
|
| IDL |
|