Union COLOR (icm.h)
Deskripsi union COLOR.
Sintaks
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;
Anggota
gray
TBD
rgb
TBD
cmyk
TBD
XYZ
TBD
Yxy
TBD
Lab
TBD
gen3ch
TBD
named
TBD
hifi
TBD
reserved1
TBD
reserved2
TBD
Keterangan
Variabel jenis COLOR dapat diakses sebagai salah satu warna ruang warna yang didukung dengan mengakses anggota serikat yang sesuai. Misalnya, mengingat deklarasi variabel berikut:
COLOR aColor;
nilai merah, hijau, dan biru dapat diatur dengan cara berikut:
aColor.rgb.red=100;
aColor.rgb.green=50;
aColor.rgb.blue=2;
Persyaratan
Persyaratan | Nilai |
---|---|
Klien minimum yang didukung | Windows 2000 Professional [hanya aplikasi desktop] |
Server minimum yang didukung | Windows 2000 Server [hanya aplikasi desktop] |
Header | icm.h |