ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

gdipluspixelformats.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2007 Google (Evan Stade)
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00017  */
00018 
00019 #ifndef _GDIPLUSPIXELFORMATS_H
00020 #define _GDIPLUSPIXELFORMATS_H
00021 
00022 typedef DWORD ARGB;
00023 typedef INT PixelFormat;
00024 
00025 #define    PixelFormatIndexed   0x00010000
00026 #define    PixelFormatGDI       0x00020000
00027 #define    PixelFormatAlpha     0x00040000
00028 #define    PixelFormatPAlpha    0x00080000
00029 #define    PixelFormatExtended  0x00100000
00030 #define    PixelFormatCanonical 0x00200000
00031 
00032 #define    PixelFormatUndefined 0
00033 #define    PixelFormatDontCare  0
00034 
00035 #define    PixelFormat1bppIndexed       (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI)
00036 #define    PixelFormat4bppIndexed       (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI)
00037 #define    PixelFormat8bppIndexed       (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI)
00038 #define    PixelFormat16bppGrayScale    (4 | (16 << 8) | PixelFormatExtended)
00039 #define    PixelFormat16bppRGB555       (5 | (16 << 8) | PixelFormatGDI)
00040 #define    PixelFormat16bppRGB565       (6 | (16 << 8) | PixelFormatGDI)
00041 #define    PixelFormat16bppARGB1555     (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)
00042 #define    PixelFormat24bppRGB          (8 | (24 << 8) | PixelFormatGDI)
00043 #define    PixelFormat32bppRGB          (9 | (32 << 8) | PixelFormatGDI)
00044 #define    PixelFormat32bppARGB         (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)
00045 #define    PixelFormat32bppPARGB        (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)
00046 #define    PixelFormat48bppRGB          (12 | (48 << 8) | PixelFormatExtended)
00047 #define    PixelFormat64bppARGB         (13 | (64 << 8) | PixelFormatAlpha  | PixelFormatCanonical | PixelFormatExtended)
00048 #define    PixelFormat64bppPARGB        (14 | (64 << 8) | PixelFormatAlpha  | PixelFormatPAlpha | PixelFormatExtended)
00049 #define    PixelFormatMax               15
00050 
00051 #ifdef __cplusplus
00052 
00053 struct ColorPalette
00054 {
00055 public:
00056     UINT Flags;
00057     UINT Count;
00058     ARGB Entries[1];
00059 };
00060 
00061 #else /* end of c++ typedefs */
00062 
00063 typedef struct ColorPalette
00064 {
00065     UINT Flags;
00066     UINT Count;
00067     ARGB Entries[1];
00068 } ColorPalette;
00069 
00070 #endif  /* end of c typedefs */
00071 
00072 #endif

Generated on Sun May 27 2012 04:31:30 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.