Diff for /parser3/src/classes/gd/Attic/gif.h between versions 1.5 and 1.7

version 1.5, 2001/04/12 13:15:20 version 1.7, 2001/04/26 14:55:17
Line 21 Line 21
 #ifndef GIF_H  #ifndef GIF_H
 #define GIF_H 1  #define GIF_H 1
   
   #include "pa_config_includes.h"
   
 #include "pa_pool.h"  #include "pa_pool.h"
 #include "pa_string.h"  #include "pa_string.h"
   
 #include <stdio.h>  
 #include <string.h>  
 #define gdMaxColors 0x100  #define gdMaxColors 0x100
 #define HSIZE  5003            /* 80% occupancy */  #define HSIZE  5003            /* 80% occupancy */
   
Line 41 Line 41
 */  */
 class gdImage : public Pooled {  class gdImage : public Pooled {
   
 public: /* Functions to manipulate images. */  public: 
           
           //@{
           /// @name Functions to manipulate images
         gdImage(Pool& pool) : Pooled(pool) {}          gdImage(Pool& pool) : Pooled(pool) {}
         void Create(int asx, int asy);          void Create(int asx, int asy);
         bool CreateFromGif(FILE *fd);          bool CreateFromGif(FILE *fd);
Line 53  public: /* Functions to manipulate image Line 55  public: /* Functions to manipulate image
         void Rectangle(int x1, int y1, int x2, int y2, int color);          void Rectangle(int x1, int y1, int x2, int y2, int color);
         void LineReplaceColor(int x1, int y1, int x2, int y2, int a, int b);          void LineReplaceColor(int x1, int y1, int x2, int y2, int a, int b);
         void FilledRectangle(int x1, int y1, int x2, int y2, int color);          void FilledRectangle(int x1, int y1, int x2, int y2, int color);
           //@}
   
         /* Point type for use in polygon drawing. */          /// Point type for use in polygon drawing.
           
         struct Point {          struct Point {
                 int x, y;                  int x, y;
         };          };
Line 84  public: /* Functions to manipulate image Line 86  public: /* Functions to manipulate image
         void SetStyle(int width);          void SetStyle(int width);
         void SetInterlace(int interlaceArg); /* On or off(1 or 0) */          void SetInterlace(int interlaceArg); /* On or off(1 or 0) */
                   
 public: /* information about image. READ ONLY */  public: 
   
           //@{
           /// @name information about image. READ ONLY
         int SX() { return sx; }          int SX() { return sx; }
         int SY() { return sy; }          int SY() { return sy; }
         int ColorsTotal() { return colorsTotal; }          int ColorsTotal() { return colorsTotal; }
Line 94  public: /* information about image. READ Line 98  public: /* information about image. READ
         int Blue(int c) { return blue[c]; }          int Blue(int c) { return blue[c]; }
         int GetTransparent() { return transparent; }          int GetTransparent() { return transparent; }
         int GetInterlaced() { return interlace; }          int GetInterlaced() { return interlace; }
           //@}
   
 private:  private:
   
Line 125  private: // read gif Line 130  private: // read gif
                   
 };  };
   
   ///     used by gdImage::Gif to produce buffer with bytes in GIF format
 class gdGifEncoder : public Pooled {  class gdGifEncoder : public Pooled {
 public:  public:
   
Line 138  public: Line 144  public:
   
 private:  private:
   
         /*          /// a code_int must be able to hold 2**GIFBITS values of type int, and also -1
          * a code_int must be able to hold 2**GIFBITS values of type int, and also -1  
          */  
         typedef int             code_int;          typedef int             code_int;
         #ifdef SIGNED_COMPARE_SLOW          #ifdef SIGNED_COMPARE_SLOW
         typedef unsigned long int count_int;          typedef unsigned long int count_int;

Removed from v.1.5  
changed lines
  Added in v.1.7


E-mail: