home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / datatypes / pictureclass.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  4KB  |  151 lines

  1. #ifndef DATATYPES_PICTURECLASS_H
  2. #define DATATYPES_PICTURECLASS_H 1
  3. /*
  4. ** pictureclass.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for pictureclass.h
  17. */
  18. #ifndef BitMapHeaderPtr
  19. #define BitMapHeaderPtr ADDRESS
  20. #endif
  21. #ifndef ColorRegisterPtr
  22. #define ColorRegisterPtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for pictureclass.h
  26. */
  27.            
  28. #ifndef UTILITY_TAGITEM_H
  29. #include <utility/tagitem.h>
  30. #endif
  31.  
  32. #ifndef DATATYPES_DATATYPESCLASS_H
  33. #include <datatypes/datatypesclass.h>
  34. #endif
  35.  
  36. #ifndef LIBRARIES_IFFPARSE_H
  37. #include <libraries/iffparse.h>
  38. #endif
  39.  
  40. /*****************************************************************************/
  41.  
  42. #define PICTUREDTCLASS      "picture.datatype"
  43.  
  44. /*****************************************************************************/
  45.  
  46. /* Picture attributes */
  47. #define PDTA_ModeID     (DTA_Dummy + 200)
  48.     /* Mode ID of the picture */
  49.  
  50. #define PDTA_BitMapHeader   (DTA_Dummy + 201)
  51.  
  52. #define PDTA_BitMap     (DTA_Dummy + 202)
  53.     /* Pointer to a class-allocated bitmap,  that will end
  54.      * up being freed by picture.class when DisposeDTObject()
  55.      * is called */
  56.  
  57. #define PDTA_ColorRegisters (DTA_Dummy + 203)
  58. #define PDTA_CRegs      (DTA_Dummy + 204)
  59. #define PDTA_GRegs      (DTA_Dummy + 205)
  60. #define PDTA_ColorTable     (DTA_Dummy + 206)
  61. #define PDTA_ColorTable2    (DTA_Dummy + 207)
  62. #define PDTA_Allocated      (DTA_Dummy + 208)
  63. #define PDTA_NumColors      (DTA_Dummy + 209)
  64. #define PDTA_NumAlloc       (DTA_Dummy + 210)
  65.  
  66. #define PDTA_Remap      (DTA_Dummy + 211)
  67.     /* Boolean : Remap picture (defaults to TRUE) */
  68.  
  69. #define PDTA_Screen     (DTA_Dummy + 212)
  70.     /* Screen to remap to */
  71.  
  72. #define PDTA_FreeSourceBitMap   (DTA_Dummy + 213)
  73.     /* Boolean : Free the source bitmap after remapping */
  74.  
  75. #define PDTA_Grab       (DTA_Dummy + 214)
  76.     /* Pointer to a Point structure */
  77.  
  78. #define PDTA_DestBitMap     (DTA_Dummy + 215)
  79.     /* Pointer to the destination (remapped) bitmap */
  80.  
  81. #define PDTA_ClassBitMap    (DTA_Dummy + 216)
  82.     /* Pointer to class-allocated bitmap,  that will end
  83.      * up being freed by the class after DisposeDTObject()
  84.      * is called */
  85.  
  86. #define PDTA_NumSparse      (DTA_Dummy + 217)
  87.     /* (SHORTINT) Number of colors used for sparse remapping */
  88.  
  89. #define PDTA_SparseTable    (DTA_Dummy + 218)
  90.     /* (BYTE  *) Pointer to a table of pen numbers indicating
  91.      * which colors should be used when remapping the image.
  92.      * This array must contain as many entries as there
  93.      * are colors specified with PDTA_NumSparse */
  94.  
  95. /*****************************************************************************/
  96.  
  97. /*  Masking techniques  */
  98. #define mskNone         0
  99. #define mskHasMask      1
  100. #define mskHasTransparentColor  2
  101. #define mskLasso        3
  102. #define mskHasAlpha     4
  103.  
  104. /*  Compression techniques  */
  105. #define cmpNone         0
  106. #define cmpByteRun1     1
  107. #define cmpByteRun2     2
  108.  
  109. /*  Bitmap header (BMHD) structure  */
  110. STRUCT BitMapHeader
  111.  
  112.     SHORTINT    bmh_Width      /* Width in pixels */
  113.     SHORTINT    bmh_Height         /* Height in pixels */
  114.     SHORTINT     bmh_Left       /* Left position */
  115.     SHORTINT     bmh_Top        /* Top position */
  116.     BYTE     bmh_Depth      /* Number of planes */
  117.     BYTE     bmh_Masking        /* Masking type */
  118.     BYTE     bmh_Compression    /* Compression type */
  119.     BYTE     bmh_Pad 
  120.     SHORTINT    bmh_Transparent    /* Transparent color */
  121.     BYTE     bmh_XAspect 
  122.     BYTE     bmh_YAspect 
  123.     SHORTINT     bmh_PageWidth 
  124.     SHORTINT     bmh_PageHeight 
  125. END STRUCT 
  126.  
  127. /*****************************************************************************/
  128.  
  129. /*  Color register structure */
  130. STRUCT ColorRegister
  131.  
  132.     BYTE  red 
  133.     BYTE   green 
  134.     BYTE   blue 
  135. END STRUCT 
  136.  
  137. /*****************************************************************************/
  138.  
  139. /* IFF types that may be in pictures */
  140. #define ID_ILBM     1229734477 
  141. #define ID_BMHD     1112361028 
  142. #define ID_BODY     1112491097 
  143. #define ID_CMAP     1129136464 
  144. #define ID_CRNG     1129467463 
  145. #define ID_GRAB     1196572994 
  146. #define ID_SPRT     1397772884 
  147. #define ID_DEST     1145394004 
  148. #define ID_CAMG     1128353095 
  149.  
  150. #endif  /* DATATYPES_PICTURECLASS_H */
  151.