Condividi tramite


Unione COLOR (icm.h)

Descrizione dell'unione COLOR.

Sintassi

typedef union tagCOLOR {
  struct GRAYCOLOR       gray;
  struct RGBCOLOR        rgb;
  struct CMYKCOLOR       cmyk;
  struct XYZCOLOR        XYZ;
  struct YxyCOLOR        Yxy;
  struct LabCOLOR        Lab;
  struct GENERIC3CHANNEL gen3ch;
  struct NAMEDCOLOR      named;
  struct HiFiCOLOR       hifi;
  struct {
    DWORD reserved1;
    VOID  *reserved2;
  };
} COLOR;

Members

gray

TBD

rgb

TBD

cmyk

TBD

XYZ

TBD

Yxy

TBD

Lab

TBD

gen3ch

TBD

named

TBD

hifi

TBD

reserved1

TBD

reserved2

TBD

Commenti

Una variabile di tipo COLOR può essere accessibile come uno dei colori dello spazio dei colori supportati accedendo al membro appropriato dell'unione. Ad esempio, in base alla dichiarazione di variabile seguente:

COLOR aColor;

I valori rosso, verde e blu possono essere impostati nel modo seguente:

aColor.rgb.red=100;

aColor.rgb.green=50;

aColor.rgb.blue=2;

Requisiti

Requisito Valore
Client minimo supportato Windows 2000 Professional [solo app desktop]
Server minimo supportato Windows 2000 Server [solo app desktop]
Intestazione icm.h