ReactOS 0.4.15-dev-7934-g1dc8d80
color.h
Go to the documentation of this file.
1#pragma once
2
3#define PC_SYS_USED 0x80 /* Palentry is used (both system and logical) */
4#define PC_SYS_RESERVED 0x40 /* System palentry is not to be mapped to */
5#define PC_SYS_MAPPED 0x10 /* Logical palentry is a direct alias for system palentry */
6
7#define NB_RESERVED_COLORS 20 /* Number of fixed colors in system palette */
8
9typedef struct _COLORSPACE
10{
15
16
17#define COLORSPACEOBJ_AllocCS() ((PCOLORSPACE) GDIOBJ_AllocObj(GDIObjType_ICMLCS_TYPE))
18#define COLORSPACEOBJ_AllocCSWithHandle() ((PCOLORSPACE) GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_COLORSPACE, sizeof(COLORSPACE)))
19#define COLORSPACEOBJ_LockCS(hCS) ((PCOLORSPACE)GDIOBJ_LockObject((HGDIOBJ)hCS, GDIObjType_ICMLCS_TYPE))
20#define COLORSPACEOBJ_UnlockCS(pCS) GDIOBJ_vUnlockObject((POBJ)pCS)
21
22typedef struct _COLORTRANSFORMOBJ
23{
27
28extern HCOLORSPACE hStockColorSpace;
29
struct _COLORTRANSFORMOBJ COLORTRANSFORMOBJ
HCOLORSPACE hStockColorSpace
Definition: icm.c:14
struct _COLORTRANSFORMOBJ GDICLRXFORM
UINT FASTCALL IntGdiRealizePalette(HDC)
Definition: palette.c:731
struct _COLORSPACE COLORSPACE
struct _COLORTRANSFORMOBJ * PCOLORTRANSFORMOBJ
struct _COLORSPACE * PCOLORSPACE
unsigned long DWORD
Definition: ntddk_ex.h:95
static HDC
Definition: imagelist.c:92
unsigned int UINT
Definition: ndis.h:50
#define FASTCALL
Definition: nt_native.h:50
DWORD dwFlags
Definition: color.h:13
LOGCOLORSPACEW lcsColorSpace
Definition: color.h:12
BASEOBJECT BaseObject
Definition: color.h:11
HANDLE hColorTransform
Definition: color.h:25
BASEOBJECT BaseObject
Definition: color.h:24