XPS _ COLOR

Eine -Struktur, die einen einzelnen Farbwert beschreibt.

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;

Bemerkungen

Das Format der Struktur hängt vom Wert von colorType ab.

XPS _ COLOR _ TYPE _ SRGB
XPS _ COLOR _ TYPE _ SCRGB
_ _ XPS-FARBTYPKONTEXT _

Requirements (Anforderungen)

Anforderung Wert
Unterstützte Mindestversion (Client)
Windows 7, Windows Vista mit SP2 und Plattformupdate für UWP-Apps für Windows [ | Vista-Desktop-Apps]
Unterstützte Mindestversion (Server)
Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server [ 2008-Desktop-Apps | UWP-Apps]
Header
Xpsobjectmodel.h
IDL
XpsObjectModel.idl

Weitere Informationen

XML Paper Specification