"Fossies" - the Fresh Open Source Software Archive

Member "hp2xx-3.4.4/sources/to_png.h" (21 Jun 2003, 1879 Bytes) of package /linux/misc/old/hp2xx-3.4.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "to_png.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** to_png.h : include file for hp2xx PNG export module to_png.c
    3 **
    4 ** 95/09/26 V 1.00  MS   Produced from Tom Boutells gd.h; deleted all
    5 **                       declarations that correspond to functions that
    6 **                       are not used by to_gif.c
    7 **
    8 ** 97/11/26 V 1.00  MS   Copied from to_gif.h, changed to gdImagePNF proto.
    9 */
   10 
   11 /* gd.h: declarations file for the gifdraw module. Version 0.91.
   12 
   13     Written by Tom Boutell, 5/94-6/94.
   14     Copyright 1994, Cold Spring Harbor Labs.
   15     Please do not release software using this module
   16     in other packages until a public release of gd
   17     itself (standalone) is made. This will occur
   18     very shortly. Our latest version has many new features
   19     which you will want to take advantage of, not included
   20     in this older version. */
   21  
   22 /* This can't be changed, it's part of the GIF specification. */
   23 
   24 #define pdMaxColors 256
   25 
   26 /* Image type. See functions below; you will not need to change
   27     the elements directly. You may trust that sx, sy,
   28     and colorsTotal can be safely inspected for read-only purposes. */
   29 
   30 typedef struct {
   31     unsigned char ** pixels;
   32     int sx;
   33     int sy;
   34     int colorsTotal;
   35     int red[pdMaxColors];
   36     int green[pdMaxColors];
   37     int blue[pdMaxColors]; 
   38     int open[pdMaxColors];
   39     int transparent;
   40 } pdImage;
   41 
   42 typedef pdImage * pdImagePtr;
   43 
   44 /* Width and height of a character in the gd font, for use in your
   45     computations. (The font is derived from a public domain
   46     font in the X11 distribution.) */
   47 
   48 #define pdFontWidth 8
   49 #define pdFontHeight 16
   50 
   51 /* Functions to manipulate images. */
   52 
   53 pdImagePtr pdImageCreate(int , int);
   54 void pdImageDestroy(pdImagePtr);
   55 void pdImageSetPixel(pdImagePtr, int, int, int);
   56 int pdImageGetPixel(pdImagePtr, int, int);
   57 int pdImageBoundsSafe(pdImagePtr, int, int);
   58 int pdImageColorAllocate(pdImagePtr, int, int, int);
   59 void pdImageColorTransparent(pdImagePtr, int);
   60 void pdImagePNG(pdImagePtr, FILE *);
   61 
   62 
   63