summaryrefslogtreecommitdiff
path: root/wingdi_bitmap_const.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-03-26 09:07:44 -0400
committermidipix <writeonce@midipix.org>2015-03-26 09:07:44 -0400
commit251f26064f0ce721a635dd6e9358fd867181fcd5 (patch)
tree0ca540d899897b32e549c0b30e30de47518d87d5 /wingdi_bitmap_const.h
downloadscrap-251f26064f0ce721a635dd6e9358fd867181fcd5.tar.bz2
scrap-251f26064f0ce721a635dd6e9358fd867181fcd5.tar.xz
headers for gdi bitmaps, reflecting an idea about one possible
principle/system that the winapi could follow: * if a header traditionally provided information about multiple implementation areas (i.e. bitmaps, brushes, clipping, etc.), provide the definitions for each of these areas in a designated header, and have the canonical header include them. * within each header, ideally begin by providing all of the enums, and then similarly all #defines, typedefs, and function signatures and/or forward declarations.
Diffstat (limited to 'wingdi_bitmap_const.h')
-rw-r--r--wingdi_bitmap_const.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/wingdi_bitmap_const.h b/wingdi_bitmap_const.h
new file mode 100644
index 0000000..427521e
--- /dev/null
+++ b/wingdi_bitmap_const.h
@@ -0,0 +1,99 @@
+#define BI_RGB 0L
+#define BI_RLE8 1L
+#define BI_RLE4 2L
+#define BI_BITFIELDS 3L
+#define BI_JPEG 4L
+#define BI_PNG 5L
+
+#define ILLUMINANT_DEVICE_DEFAULT 0
+#define ILLUMINANT_A 1
+#define ILLUMINANT_B 2
+#define ILLUMINANT_C 3
+#define ILLUMINANT_D50 4
+#define ILLUMINANT_D55 5
+#define ILLUMINANT_D65 6
+#define ILLUMINANT_D75 7
+#define ILLUMINANT_F2 8
+#define ILLUMINANT_MAX_INDEX ILLUMINANT_F2
+
+#define ILLUMINANT_TUNGSTEN ILLUMINANT_A
+#define ILLUMINANT_DAYLIGHT ILLUMINANT_C
+#define ILLUMINANT_FLUORESCENT ILLUMINANT_F2
+#define ILLUMINANT_NTSC ILLUMINANT_C
+
+#define RGB_GAMMA_MIN (USHORT)02500
+#define RGB_GAMMA_MAX (USHORT)65000
+
+#define REFERENCE_WHITE_MIN (USHORT)6000
+#define REFERENCE_WHITE_MAX (USHORT)10000
+#define REFERENCE_BLACK_MIN (USHORT)0
+#define REFERENCE_BLACK_MAX (USHORT)4000
+
+#define COLOR_ADJ_MIN (SHORT)-100
+#define COLOR_ADJ_MAX (SHORT)100
+
+/* raster operations */
+#define R2_BLACK 1
+#define R2_NOTMERGEPEN 2
+#define R2_MASKNOTPEN 3
+#define R2_NOTCOPYPEN 4
+#define R2_MASKPENNOT 5
+#define R2_NOT 6
+#define R2_XORPEN 7
+#define R2_NOTMASKPEN 8
+#define R2_MASKPEN 9
+#define R2_NOTXORPEN 10
+#define R2_NOP 11
+#define R2_MERGENOTPEN 12
+#define R2_COPYPEN 13
+#define R2_MERGEPENNOT 14
+#define R2_MERGEPEN 15
+#define R2_WHITE 16
+#define R2_LAST 16
+
+#define SRCCOPY (DWORD)0x00CC0020
+#define SRCPAINT (DWORD)0x00EE0086
+#define SRCAND (DWORD)0x008800C6
+#define SRCINVERT (DWORD)0x00660046
+#define SRCERASE (DWORD)0x00440328
+#define NOTSRCCOPY (DWORD)0x00330008
+#define NOTSRCERASE (DWORD)0x001100A6
+#define MERGECOPY (DWORD)0x00C000CA
+#define MERGEPAINT (DWORD)0x00BB0226
+#define PATCOPY (DWORD)0x00F00021
+#define PATPAINT (DWORD)0x00FB0A09
+#define PATINVERT (DWORD)0x005A0049
+#define DSTINVERT (DWORD)0x00550009
+#define BLACKNESS (DWORD)0x00000042
+#define WHITENESS (DWORD)0x00FF0062
+#define NOMIRRORBITMAP (DWORD)0x80000000
+#define CAPTUREBLT (DWORD)0x40000000
+#define MAKE_ROP4(f,b) (DWORD)((((b)<<8) & 0xFF000000)|(f))
+
+/* dib flags */
+#define CBM_INIT 0x04L
+#define DIB_RGB_COLORS 0
+#define DIB_PAL_COLORS 1
+
+/* flood types */
+#define FLOODFILLBORDER 0
+#define FLOODFILLSURFACE 1
+
+/* gradient fill flags */
+#define GRADIENT_FILL_RECT_H 0x00
+#define GRADIENT_FILL_RECT_V 0x01
+#define GRADIENT_FILL_TRIANGLE 0x02
+#define GRADIENT_FILL_OP_FLAG 0xff
+
+/* stretch blt modes */
+#define STRETCH_ANDSCANS 1
+#define STRETCH_ORSCANS 2
+#define STRETCH_DELETESCANS 3
+#define STRETCH_HALFTONE 4
+
+/* stretch blt legacy modes */
+#define BLACKONWHITE 1
+#define WHITEONBLACK 2
+#define COLORONCOLOR 3
+#define HALFTONE 4
+#define MAXSTRETCHBLTMODE 4