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

colors.h
Go to the documentation of this file.
00001 /* Values for wmesa->pixelformat: */
00002 
00003 #define PF_8A8B8G8R 3   /* 32-bit TrueColor:  8-A, 8-B, 8-G, 8-R */
00004 #define PF_8R8G8B   4   /* 32-bit TrueColor:  8-R, 8-G, 8-B */
00005 #define PF_5R6G5B   5   /* 16-bit TrueColor:  5-R, 6-G, 5-B bits */
00006 #define PF_DITHER8  6   /* Dithered RGB using a lookup table */
00007 #define PF_LOOKUP   7   /* Undithered RGB using a lookup table */
00008 #define PF_GRAYSCALE    10  /* Grayscale or StaticGray */
00009 #define PF_BADFORMAT    11
00010 #define PF_INDEX8   12
00011 
00012 
00013 #define BGR8(r,g,b) (unsigned)(((BYTE)((b & 0xc0) | ((g & 0xe0)>>2) | \
00014                                       ((r & 0xe0)>>5))))
00015 
00016 /* Windows uses 5,5,5 for 16-bit */
00017 #define BGR16(r,g,b) (  (((unsigned short)b       ) >> 3) | \
00018                         (((unsigned short)g & 0xf8) << 2) | \
00019                         (((unsigned short)r & 0xf8) << 7) )
00020 
00021 #define BGR24(r,g,b) (unsigned long)((DWORD)(((BYTE)(b)| \
00022                                     ((WORD)((BYTE)(g))<<8))| \
00023                                     (((DWORD)(BYTE)(r))<<16)))
00024 
00025 #define BGR32(r,g,b) (unsigned long)((DWORD)(((BYTE)(b)| \
00026                                     ((WORD)((BYTE)(g))<<8))| \
00027                                     (((DWORD)(BYTE)(r))<<16)))
00028 
00029 

Generated on Sun May 27 2012 04:19:57 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.