home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / printimage_394.lzh / PrintImage / PreInclude.c < prev    next >
C/C++ Source or Header  |  1990-10-28  |  1KB  |  65 lines

  1. /* $Revision Header * Header built automatically - do not edit! *************
  2.  *
  3.  *    (C) Copyright 1990 by MXM
  4.  *
  5.  *    Name .....: PreInclude.c
  6.  *    Created ..: Saturday 15-Sep-90 14:16
  7.  *    Revision .: 1
  8.  *
  9.  *    Date            Author          Comment
  10.  *    =========       ========        ====================
  11.  *    15-Sep-90       Olsen           Created this file!
  12.  *
  13.  * $Revision Header ********************************************************/
  14.  
  15.     /* Standard system includes. */
  16.  
  17. #include <intuition/intuitionbase.h>
  18. #include <libraries/dosextens.h>
  19. #include <libraries/reqbase.h>
  20. #include <graphics/gfxbase.h>
  21. #include <devices/printer.h>
  22. #include <exec/execbase.h>
  23. #include <exec/memory.h>
  24. #include <clib/macros.h>
  25.  
  26.     /* Req.library and system library calls. */
  27.  
  28. #include <libraries/reqproto.h>
  29. #include <functions.h>
  30.  
  31.     /* Standard 'C' includes. */
  32.  
  33. #include <stddef.h>
  34. #include <stdlib.h>
  35. #include <stdio.h>
  36.  
  37.     /* Calculate number of words required to form a row of
  38.      * pixels.
  39.      */
  40.  
  41. #define byte(Width) (((Width + 15) >> 4) << 1)
  42.  
  43.     /* A BitMapHeader (BMHD). */
  44.  
  45. typedef struct
  46. {
  47.     UWORD w,h;
  48.     UWORD x,y;
  49.     UBYTE nPlanes;
  50.     UBYTE masking;
  51.     UBYTE compression;
  52.     UBYTE pad1;
  53.     UWORD transparentColor;
  54.     UBYTE xAspect, yAspect;
  55.     WORD pageWidth, pageHeight;
  56. } BitMapHeader;
  57.  
  58.     /* A standard IFF-chunk header. */
  59.  
  60. typedef struct
  61. {
  62.     ULONG    IFF_Type;
  63.     LONG    IFF_Length;
  64. } IFF_Chunk;
  65.