home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilss / sprtools / h / xwd < prev   
Text File  |  1994-07-18  |  3KB  |  53 lines

  1. /************************************************************************
  2.  *                                                                      *
  3.  * xwd.h    MIT Project Athena, X Window system window raster        *
  4.  *          image dumper, dump file format header file.            *
  5.  *                                                                      *
  6.  * Version 1.50 (23-Aug-1993)                                           *
  7.  *                                                                      *
  8.  ************************************************************************/
  9.  
  10.  
  11.  
  12. typedef struct {
  13.         int header_size;        /* Size of the entire file header (bytes) */
  14.         int file_version;       /* XWD_FILE_VERSION                       */
  15.         int pixmap_format;      /* Pixmap format                          */
  16.         int pixmap_depth;       /* Pixmap depth                           */
  17.         int pixmap_width;       /* Pixmap width                           */
  18.         int pixmap_height;      /* Pixmap height                          */
  19.         int xoffset;            /* Bitmap x offset                        */
  20.         int byte_order;         /* MSBFirst, LSBFirst                     */
  21.         int bitmap_unit;        /* Bitmap unit                            */
  22.         int bitmap_bit_order;   /* MSBFirst, LSBFirst                     */
  23.         int bitmap_pad;         /* Bitmap scanline pad                    */
  24.         int bits_per_pixel;     /* Bits per pixel                         */
  25.         int bytes_per_line;     /* Bytes per scanline                     */
  26.         int visual_class;       /* Class of colourmap                     */
  27.         int red_mask;           /* Z red mask                             */
  28.         int green_mask;         /* Z green mask                           */
  29.         int blue_mask;          /* Z blue mask                            */
  30.         int bits_per_rgb;       /* Log2 of distinct colour values         */
  31.         int colourmap_entries;  /* Number of entries in colourmap         */
  32.         int ncolours;           /* Number of colour structures            */
  33.         int window_width;       /* Window width                           */
  34.         int window_height;      /* Window height                          */
  35.         int window_x;           /* Window upper left X coordinate         */
  36.         int window_y;           /* Window upper left Y coordinate         */
  37.         int window_bdrwidth;    /* Window border width                    */
  38. } xwd_header;
  39.  
  40. int xwd_header_descr[] = { 4,4, 4,4,4,4, 4,4,4,4,4, 4,4, 4, 4,4,4, 4,4,4,
  41.                            4,4, 4,4, 4, -1 };
  42.  
  43. typedef struct {
  44.         unsigned int    pixel;
  45.         unsigned short  red;
  46.         unsigned short  green;
  47.         unsigned short  blue;
  48.         unsigned char   flags;
  49.         unsigned char   pad;
  50. } xwd_colour;
  51.  
  52. int xwd_colour_descr[] = { 4, 2,2,2, 1,1, -1 };
  53.