Category : Printer + Display Graphics
Archive   : TIFGIF.ZIP
Filename : GIFWRITE.H

 
Output of file : GIFWRITE.H contained in archive : TIFGIF.ZIP
short Create_GIF (
/*
* Function:
* Create a 1-image GIF image-set. The size of the screen will be the
* same as the image.
*
* Inputs:
*/
short (*read_pixel)(void), /* ptr to caller's pixel reader */
short (*write_byte)(unsigned char), /* ptr to caller's byte writer */
short width, /* width of image in pixels */
short height, /* height of image in pixels */
short cr, /* bits of color resolution (1..8) */
short interlaced, /* interlaced flag */
short bp, /* bits per pixel (1..8) */
short normalize, /* normalize the color map */
struct ColorEntry color_map[] ); /* ptr to color map */

short Write_Screen_Desc (
/*
* Function:
* Write the GIF signature, the screen description, and the optional
* color map.
*
* Inputs:
*/
short (*write_byte)(unsigned char), /* ptr to caller's byte writer */
short width, /* width of the screen in pixels */
short height, /* height of the screen in pixels */
short cr, /* bits of color resolution (1..8) */
short fill_color, /* pixel value used to fill the background */
short bp, /* bits per pixel (1..8) */
short normalize, /* normalize the color map */
struct ColorEntry color_map[] ); /* ptr to the optional color map */
/*
* Returns:
* 0 = OK, else error code
*/

short Write_Image_Desc (
/*
* Function:
* Write the image description and optional local color map.
*
* Inputs:
*/
short (*write_byte)(unsigned char), /* ptr to caller's byte writer */
short left_edge, /* (left_edge, top_edge) is the upper left */
short top_edge, /* position in pixels of the image */
short width, /* width of the image in pixels */
short height, /* height of the image in pixels */
short cr, /* bits of color resolution (1..8) */
short interlaced, /* 1 = interlace the image */
short bp, /* bits per pixel for this image */
short normalize, /* normalize the color map */
struct ColorEntry color_map[] ); /* ptr to local color map */
/*
* Returns:
* 0 = OK, else error code
*/



  3 Responses to “Category : Printer + Display Graphics
Archive   : TIFGIF.ZIP
Filename : GIFWRITE.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/