1 /****************************\
2 * Bitmap mit Farbtabelle als *
3 * Graphik-Datei speichern *
4 * Autor: Gabriel Schmidt *
5 * (c} 1992 by MAXON-Computer *
7 \****************************/
12 /* #include <portab.h> */
13 #define UWORD unsigned short
14 #define ULONG unsigned long
15 #define UBYTE unsigned char
17 #define XIMG_MAGIC 0x58494D47
20 typedef enum { IMG, XIMG } FILE_TYP;
22 const char *get_file_ext(FILE_TYP typ);
29 int bitmap_to_file(FILE_TYP typ, int ww, int wh,
30 unsigned int pwx, unsigned int pwy,
31 unsigned int planes, unsigned int colors,
33 void (*get_color) (unsigned int colind, struct RGB *rgb) ,
34 void (*get_pixel) (int x, int y, unsigned int *colind) ) ;