home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / os-include / datatypes / pictureclass.i < prev    next >
Encoding:
Text File  |  1992-09-24  |  3.4 KB  |  134 lines

  1.     IFND DATATYPES_PICTURECLASS_I
  2. DATATYPES_PICTURECLASS_I    SET    1
  3. **
  4. **  $VER: pictureclass.i 39.0 (29.06.92)
  5. **  Includes Release 39.108
  6. **
  7. **  Interface definitions for DataType picture objects.
  8. **
  9. **  (C) Copyright 1992 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. **
  12.  
  13.     IFND UTILITY_TAGITEM_I
  14.     INCLUDE 'utility/tagitem.i'
  15.     ENDC
  16.  
  17.     IFND DATATYPES_DATATYPESCLASS_I
  18.     INCLUDE 'datatypes/datatypesclass.i'
  19.     ENDC
  20.  
  21.     IFND LIBRARIES_IFFPARSE_I
  22.     INCLUDE 'libraries/iffparse.i'
  23.     ENDC
  24.  
  25. ;------------------------------------------------------------------------------
  26.  
  27. PICTUREDTCLASS    equ    "picture.datatype"
  28.  
  29. ;------------------------------------------------------------------------------
  30.  
  31. ; Picture attributes
  32. PDTA_ModeID        equ    (DTA_Dummy+200)
  33.     ; Mode ID of the picture
  34.  
  35. PDTA_BitMapHeader    equ    (DTA_Dummy+201)
  36.  
  37. PDTA_BitMap        equ    (DTA_Dummy+202)
  38.     ; Pointer to a class-allocated bitmap, that will end
  39.     ; up being freed by picture.class when DisposeDTObject()
  40.     ; is called
  41.  
  42. PDTA_ColorRegisters    equ    (DTA_Dummy+203)
  43. PDTA_CRegs        equ    (DTA_Dummy+204)
  44. PDTA_GRegs        equ    (DTA_Dummy+205)
  45. PDTA_ColorTable        equ    (DTA_Dummy+206)
  46. PDTA_ColorTable2    equ    (DTA_Dummy+207)
  47. PDTA_Allocated        equ    (DTA_Dummy+208)
  48. PDTA_NumColors        equ    (DTA_Dummy+209)
  49. PDTA_NumAlloc        equ    (DTA_Dummy+210)
  50.  
  51. PDTA_Remap        equ    (DTA_Dummy+211)
  52.     ; Boolean : Remap picture (defaults to TRUE)
  53.  
  54. PDTA_Screen        equ    (DTA_Dummy+212)
  55.     ; Screen to remap to
  56.  
  57. PDTA_FreeSourceBitMap    equ    (DTA_Dummy+213)
  58.     ; Boolean : Free the source bitmap after remapping
  59.  
  60. PDTA_Grab        equ    (DTA_Dummy+214)
  61.     ; Pointer to a Point structure
  62.  
  63. PDTA_DestBitMap        equ    (DTA_Dummy+215)
  64.     ; Pointer to the destination (remapped) bitmap
  65.  
  66. PDTA_ClassBitMap    equ    (DTA_Dummy+216)
  67.     ; Pointer to class-allocated bitmap, that will end
  68.     ; up being freed by the class after DisposeDTObject()
  69.     ; is called
  70.  
  71. PDTA_NumSparse        equ    (DTA_Dummy+217)
  72.     ; (UWORD) Number of colors used for sparse remapping
  73.  
  74. PDTA_SparseTable    equ    (DTA_Dummy+218)
  75.     ; (UBYTE *) Pointer to a table of pen numbers indicating
  76.     ; which colors should be used when remapping the image.
  77.     ; This array must contain as many entries as there
  78.     ; are colors specified with PDTA_NumSparse
  79.  
  80. ;------------------------------------------------------------------------------
  81.  
  82. ; Masking techniques
  83. mskNone            equ    0
  84. mskHasMask        equ    1
  85. mskHasTransparentColor    equ    2
  86. mskLasso        equ    3
  87.  
  88. ; Compression techniques
  89. cmpNone            equ    0
  90. cmpByteRun1        equ    1
  91.  
  92. ; Bitmap header (BMHD) structure
  93.     STRUCTURE BitMapHeader,0
  94.     UWORD     bmh_Width;        ; Width in pixels
  95.     UWORD     bmh_Height        ; Height in pixels
  96.     WORD     bmh_Left        ; Left position
  97.     WORD     bmh_Top        ; Top position
  98.     UBYTE     bmh_Depth        ; Number of planes
  99.     UBYTE     bmh_Masking        ; Masking type
  100.     UBYTE     bmh_Compression    ; Compression type
  101.     UBYTE     bmh_Pad
  102.     UWORD     bmh_Transparent    ; Transparent color
  103.     UBYTE     bmh_XAspect
  104.     UBYTE     bmh_YAspect
  105.     WORD     bmh_PageWidth
  106.     WORD     bmh_PageHeight
  107.     LABEL BitMapHeader_SIZEOF
  108.  
  109. ;------------------------------------------------------------------------------
  110.  
  111. ;  Color register structure
  112.     STRUCTURE ColorRegister,0
  113.     UBYTE    red
  114.     UBYTE    green
  115.     UBYTE    blue
  116.     LABEL ColorRegister_SIZEOF
  117.  
  118. ;------------------------------------------------------------------------------
  119.  
  120. ; IFF types that may be in pictures
  121. ID_ILBM        equ    'ILBM'
  122. ID_BMHD        equ    'BMHD'
  123. ID_BODY        equ    'BODY'
  124. ID_CMAP        equ    'CMAP'
  125. ID_CRNG        equ    'CRNG'
  126. ID_GRAB        equ    'GRAB'
  127. ID_SPRT        equ    'SPRT'
  128. ID_DEST        equ    'DEST'
  129. ID_CAMG        equ    'CAMG'
  130.  
  131. ;------------------------------------------------------------------------------
  132.  
  133.     ENDC    ; DATATYPES_PICTURECLASS_I
  134.