共用方式為


XPS_COLOR 結構 (xpsobjectmodel.h)

colorTypeXPS_COLOR_TYPE_CONTEXT,XPS_COLOR結構的內容。

語法

typedef struct __MIDL___MIDL_itf_xpsobjectmodel_0000_0000_0024 {
  XPS_COLOR_TYPE                                  colorType;
  union {
    struct {
      UINT8 alpha;
      UINT8 red;
      UINT8 green;
      UINT8 blue;
    } sRGB;
    struct {
      FLOAT alpha;
      FLOAT red;
      FLOAT green;
      FLOAT blue;
    } scRGB;
    struct {
      UINT8 channelCount;
      FLOAT channels[9];
    } context;
  } value;
  __MIDL___MIDL_itf_xpsobjectmodel_0000_0000_0028 __MIDL___MIDL_itf_xpsobjectmodel_0000_0000_0028;
} XPS_COLOR;

成員

colorType

value

value.sRGB

value.sRGB.alpha

value.sRGB.red

value.sRGB.green

value.sRGB.blue

value.scRGB

value.scRGB.alpha

value.scRGB.red

value.scRGB.green

value.scRGB.blue

value.context

value.context.channelCount

value.context.channels[9]

__MIDL___MIDL_itf_xpsobjectmodel_0000_0000_0028

備註

如需如何解譯或套用這個結構成員中值的資訊,請參閱 XML 紙張規格

規格需求

需求
最低支援的用戶端 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [僅限桌面應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [僅限傳統型應用程式]
標頭 xpsobjectmodel.h

另請參閱

XML Paper Specification