共用方式為


XPS_COLOR

描述單一色彩值的 結構。

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 的值

XPS_COLOR_TYPE_SRGB
XPS_COLOR_TYPE_SCRGB
XPS_COLOR_TYPE_CONTEXT

需求

需求
最低支援的用戶端
適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器
Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
標題
Xpsobjectmodel.h
IDL
XpsObjectModel.idl

另請參閱

XML 紙張規格