Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

plpcx.h

00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: plpcx.h,v 1.4 2003/08/03 10:58:32 uzadow Exp $
00005 |
00006 |      Defines structures and constants present in PCX files.
00007 |
00008 |      Copyright (c) 1996-2002 Ulrich von Zadow
00009 |
00010 \--------------------------------------------------------------------
00011 */
00012 
00013 #ifndef INCL_PLPCX
00014 #define INCL_PLPCX
00015 
00016 // PCX Image File
00017 typedef struct tagPCXHEADER
00018 {
00019   char Manufacturer;  // always 0X0A
00020   char Version;  // version number
00021   char Encoding;  // always 1
00022   char BitsPerPixel;  // color bits
00023   PLWORD Xmin, Ymin;  // image origin
00024   PLWORD Xmax, Ymax;  // image dimensions
00025   PLWORD Hres, Vres;  // resolution values
00026   PLBYTE ColorMap[16][3];  // color palette
00027   char Reserved;
00028   char ColorPlanes;  // color planes
00029   PLWORD BytesPerLine;  // line buffer size
00030   PLWORD PaletteType;  // grey or color palette
00031   char Filter[58];
00032 } PCXHEADER;
00033 
00034 #define PCX_MAGIC 0X0A  // PCX magic number
00035 #define PCX_256_COLORS 0X0C  // magic number for 256 colors
00036 #define PCX_HDR_SIZE 128  // size of PCX header
00037 #define PCX_MAXCOLORS 256
00038 #define PCX_MAXPLANES 4
00039 #define PCX_MAXVAL 255
00040 
00041 #endif
00042 
00043 /*
00044 /--------------------------------------------------------------------
00045 |
00046 |      $Log: plpcx.h,v $
00047 |      Revision 1.4  2003/08/03 10:58:32  uzadow
00048 |      Windows port of PLFilterFlipRGB. Fixed PLPCXDecoder.
00049 |
00050 |      Revision 1.3  2002/02/24 13:00:22  uzadow
00051 |      Documentation update; removed buggy PLFilterRotate.
00052 |
00053 |      Revision 1.2  2001/10/06 22:03:26  uzadow
00054 |      Added PL prefix to basic data types.
00055 |
00056 |      Revision 1.1  2001/09/16 19:03:22  uzadow
00057 |      Added global name prefix PL, changed most filenames.
00058 |
00059 |      Revision 1.4  2000/01/10 23:52:59  Ulrich von Zadow
00060 |      Changed formatting & removed tabs.
00061 |
00062 |      Revision 1.3  1999/12/15 21:16:30  Ulrich von Zadow
00063 |      Removed references to gif in pcx decoder.
00064 |
00065 |
00066 \--------------------------------------------------------------------
00067 */

Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2