home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / ImageLib / Image_lib / include / libraries / image.h next >
Encoding:
C/C++ Source or Header  |  1999-05-23  |  3.0 KB  |  78 lines

  1. #ifndef LIBRARIES_IMAGE_H
  2. #define LIBRARIES_IMAGE_H
  3.  
  4. #ifndef GRAPHICS_RASTPORT_H
  5. #include <graphics/rastport.h>
  6. #endif
  7. #ifndef UTILITY_TAGITEM_H
  8. #include <utility/tagitem.h>
  9. #endif
  10. #ifndef GRAPHICS_VIEW_H
  11. #include <graphics/view.h>
  12. #endif
  13.  
  14. struct ChunkyImg
  15. {
  16.   UWORD ci_Width;        /* Szerokoôê */
  17.   UWORD ci_Height;       /* Wysokoôê */
  18.   UWORD ci_NumColors;    /* Liczba kolorów <= 256 */
  19.   UWORD ci_Flags;        /* Flagi, na razie NULL */
  20.   UBYTE *ci_Palette;     /* Paleta w formacie R0G0B0R1G1B1R2G2B2....RnGnBn n=liczba kolorów - 1 */
  21.   UBYTE *ci_ChunkyData;  /* ChunkyImage w formacie Szerokoôê*Wysokoôê */
  22. };
  23.  
  24. /* Tags definitions for ChunkyToBitMapA() */
  25. #define CTBM_Dummy      (TAG_USER)
  26. #define CTBM_Precision  (CTBM_Dummy + 0x01)  /* Precyzja doboru kolorów */ 
  27. /* Arg for this tag is the same like for graphics.library/ObtainBestPenA{} */
  28. #define PREC_EXACT PRECISION_EXACT
  29. #define PREC_IMAGE PRECISION_IMAGE
  30. #define PREC_ICON PRECISION_ICON
  31. #define PREC_GUI PRECISION_GUI
  32.  
  33. /* Tags definitions for DrawTextA() */
  34. #define DT_Dummy    (TAG_USER + 1)
  35. #define DT_FontA    (DT_Dummy + 0x01)  /* Czcionka nr. 1 */ 
  36. #define DT_FontB    (DT_Dummy + 0x02)  /* Czcionka nr. 2 */
  37. #define DT_Texts    (DT_Dummy + 0x03)  /* Tekst do wyôwietlenia */
  38. #define DT_Top      (DT_Dummy + 0x04)  /* Górna krawëdú */
  39. #define DT_Left     (DT_Dummy + 0x05)  /* Lewa krawëdú */
  40. #define DT_Width    (DT_Dummy + 0x06)  /* Szerokoôê */
  41. #define DT_Height   (DT_Dummy + 0x07)  /* Wysokoôê */
  42. #define DT_RastPort (DT_Dummy + 0x08)  /* RastPort */
  43.  
  44. /* Tags definitions for Draw3DBoxA() */
  45. #define DBA_Dummy       (TAG_USER + 2)
  46. #define DBA_PosX        (DBA_Dummy + 0x01)  /* Pozycja X lewego górnego rogu */
  47. #define DBA_PosY        (DBA_Dummy + 0x02)  /* Pozycja Y lewego górnego rogu */
  48. #define DBA_Width       (DBA_Dummy + 0x03)  /* Szerokoôê */
  49. #define DBA_Height      (DBA_Dummy + 0x04)  /* Wysokoôê */
  50. #define DBA_BrightEdge  (DBA_Dummy + 0x05)  /* Numer koloru jasnej krawëdzi */
  51. #define DBA_DarkEdge    (DBA_Dummy + 0x06)  /* Numer koloru ciemnej krawëdzi */
  52. #define DBA_Align       (DBA_Dummy + 0x07)  /* Rodzaj wyrównania tekstu */
  53. #define DBA_Text        (DBA_Dummy + 0x08)  /* Tekst */
  54.  
  55. /* Args for tag DBA_Align */
  56. #define ALIGN_LEFT   1  /* Wyrównanie tekstu do lewej strony */
  57. #define ALIGN_CENTER 2  /* Wycentrowanie tekstu */
  58.  
  59.  
  60. /* Tags definitions for ScaleBitMapA() */
  61. #define SBA_Dummy       (TAG_USER + 3)
  62. #define SBA_SrcX        (SBA_Dummy + 0x01)  /* Pozycja X lewego górnego rogu úródîa */
  63. #define SBA_SrcY        (SBA_Dummy + 0x02)  /* Pozycja Y lewego górnego rogu úródîa */
  64. #define SBA_SrcWidth    (SBA_Dummy + 0x03)  /* Szerokoôê úródîa */
  65. #define SBA_SrcHeight   (SBA_Dummy + 0x04)  /* Wysokoôê úródîa */
  66. #define SBA_DestWidth   (SBA_Dummy + 0x05)  /* Szerokoôc przeznaczenia */
  67. #define SBA_DestHeight  (SBA_Dummy + 0x06)  /* Wysokoôê przeznaczenia */
  68.  
  69. /* Tags definitions for ChunkyToHAMA() */
  70. #define CTBH_Dummy      (TAG_USER)
  71. #define CTBH_HamMode      (CTBM_Dummy + 0x01)  /* Tryb HAM */ 
  72.  
  73. /* Args for tag CTBH_HamMode */
  74. #define MODE_HAM6   0
  75. #define MODE_HAM8        1
  76.  
  77. #endif /* LIBRARIES_IMAGE_H */
  78.