#ifndef _GIFSAVE_H_
#define _GIFSAVE_H_
#include <stdio.h> /* FILE */
/* common typedefs */
enum {false,true};
typedef unsigned long dword; /* 32 bit */
typedef unsigned short word; /* 16 bit */
typedef unsigned char byte; /* 8 bit */
typedef byte bool;
/* RGB data structure */
typedef struct{
byte R,G,B;
} tRGBTriple;
/* This function writes the entire GIF89 file.
Its callback funtion retrieves the pixel indexes.
transcolor=-1 disables transparency. */
bool WriteGIF89(FILE *f, word width, word height, byte depth,
const tRGBTriple *rgbtab, short transcolor, char *comment,
byte (*inputbyte)(short x, short y));
#endif/*_GIFSAVE_H_*/
Vorgefundene Kodierung: UTF-8 | 0
|