ReactOS  0.4.14-dev-815-ge410a12
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 
9 typedef 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 
22 typedef struct _COLORTRANSFORMOBJ
23 {
27 
28 extern HCOLORSPACE hStockColorSpace;
29 
static HDC
Definition: imagelist.c:92
LOGCOLORSPACEW lcsColorSpace
Definition: color.h:12
#define FASTCALL
Definition: nt_native.h:50
HCOLORSPACE hStockColorSpace
Definition: icm.c:14
BASEOBJECT BaseObject
Definition: color.h:11
struct _COLORTRANSFORMOBJ COLORTRANSFORMOBJ
struct _COLORTRANSFORMOBJ GDICLRXFORM
struct _COLORSPACE COLORSPACE
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE hColorTransform
Definition: color.h:25
BASEOBJECT BaseObject
Definition: color.h:24
struct _COLORTRANSFORMOBJ * PCOLORTRANSFORMOBJ
unsigned int UINT
Definition: ndis.h:50
UINT FASTCALL IntGdiRealizePalette(HDC)
Definition: palette.c:731
DWORD dwFlags
Definition: color.h:13
struct _COLORSPACE * PCOLORSPACE