VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/gdipluspixelformats.h@ 33252

Last change on this file since 33252 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1/*
2 * Copyright (C) 2007 Google (Evan Stade)
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef _GDIPLUSPIXELFORMATS_H
29#define _GDIPLUSPIXELFORMATS_H
30
31typedef DWORD ARGB;
32typedef INT PixelFormat;
33
34#define PixelFormatIndexed 0x00010000
35#define PixelFormatGDI 0x00020000
36#define PixelFormatAlpha 0x00040000
37#define PixelFormatPAlpha 0x00080000
38#define PixelFormatExtended 0x00100000
39#define PixelFormatCanonical 0x00200000
40
41#define PixelFormatUndefined 0
42#define PixelFormatDontCare 0
43
44#define PixelFormat1bppIndexed (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI)
45#define PixelFormat4bppIndexed (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI)
46#define PixelFormat8bppIndexed (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI)
47#define PixelFormat16bppGrayScale (4 | (16 << 8) | PixelFormatExtended)
48#define PixelFormat16bppRGB555 (5 | (16 << 8) | PixelFormatGDI)
49#define PixelFormat16bppRGB565 (6 | (16 << 8) | PixelFormatGDI)
50#define PixelFormat16bppARGB1555 (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)
51#define PixelFormat24bppRGB (8 | (24 << 8) | PixelFormatGDI)
52#define PixelFormat32bppRGB (9 | (32 << 8) | PixelFormatGDI)
53#define PixelFormat32bppARGB (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)
54#define PixelFormat32bppPARGB (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)
55#define PixelFormat48bppRGB (12 | (48 << 8) | PixelFormatExtended)
56#define PixelFormat64bppARGB (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended)
57#define PixelFormat64bppPARGB (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended)
58#define PixelFormatMax 15
59
60#ifdef __cplusplus
61
62struct ColorPalette
63{
64public:
65 UINT Flags;
66 UINT Count;
67 ARGB Entries[1];
68};
69
70#else /* end of c++ typedefs */
71
72typedef struct ColorPalette
73{
74 UINT Flags;
75 UINT Count;
76 ARGB Entries[1];
77} ColorPalette;
78
79#endif /* end of c typedefs */
80
81#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette