XPS_COLOR structure (xpsobjectmodel.h)

The contents of the XPS_COLOR structure when the colorType is XPS_COLOR_TYPE_CONTEXT.

Syntax

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;

Members

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

Remarks

For information about how to interpret or apply the values in this structure's members, see the XML Paper Specification.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Header xpsobjectmodel.h

See also

XML Paper Specification