Logo Search packages:      
Sourcecode: parser version File versions  Download package

gdImage Class Reference

#include <gif.h>

Inheritance diagram for gdImage:

PA_Allocated

List of all members.


Detailed Description

Image type. See functions below; you will not need to change the elements directly. Use the provided macros to access sx, sy, the color table, and colorsTotal for read-only purposes.

Definition at line 69 of file gif.h.


Public Member Functions

void Arc (int cx, int cy, int w, int h, int s, int e, int color)
int BoundsSafe (int x, int y)
int Color (unsigned int rgb)
int ColorAllocate (int r, int g, int b)
int ColorClosest (int r, int g, int b, int tolerance=0)
void ColorDeallocate (int color)
int ColorExact (int r, int g, int b)
int ColorRGB (int r, int g, int b)
void Copy (gdImage &dst, int dstX, int dstY, int srcX, int srcY, int w, int h)
void CopyResampled (gdImage &dst, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH, int tolerance)
unsigned int DecodeColor (int color)
void DoSetPixel (int x, int y, int color)
void Fill (int x, int y, int color)
void FilledPolygon (Point *p, int n, int c)
void FilledPolygonReplaceColor (Point *p, int n, int a, int b)
void FillToBorder (int x, int y, int border, int color)
gdBuf Gif ()
void Polygon (Point *p, int n, int c, bool closed=true)
void Sector (int cx, int cy, int w, int h, int s, int e, int color)
void SetColorTransparent (int color)
void SetInterlace (int interlaceArg)
void SetLineStyle (const char *aLineStyle)
void SetLineWidth (int width)
information about image. READ ONLY
int Blue (int c)
int ColorsTotal ()
int GetInterlaced ()
int GetTransparent ()
int Green (int c)
int Red (int c)
int SX ()
int SY ()
Functions to manipulate images
void Create (int asx, int asy)
bool CreateFromGif (FILE *fd)
void FilledRectangle (int x1, int y1, int x2, int y2, int color)
int GetPixel (int x, int y)
void Line (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 Rectangle (int x1, int y1, int x2, int y2, int color)
void SetPixel (int x, int y, int color)
void StyledLine (int x1, int y1, int x2, int y2, int color, const char *lineStyle)

Static Public Member Functions

static void free (void *ptr)
static void * malloc (size_t size)
static void * malloc_atomic (size_t size)
static void operator delete (void *ptr)
static void * operator new (size_t size)
 the sole: instances allocated using our functions
static void * realloc (void *ptr, size_t size)
static char * strdup (const char *auto_variable_never_null, size_t helper_length=0)

Private Member Functions

int DoExtension (FILE *fd, int label, int *Transparent)
int GetCode (FILE *fd, int code_size, int flag)
int GetDataBlock (FILE *fd, unsigned char *buf)
int LWZReadByte (FILE *fd, int flag, int input_code_size)
void ReadImage (FILE *fd, int len, int height, unsigned char(*cmap)[256], int interlace, int ignore)

Private Attributes

int blue [gdMaxColors]
int colorsTotal
int green [gdMaxColors]
int interlace
const char * lineStyle
int lineWidth
int open [gdMaxColors]
unsigned char ** pixels
int polyAllocated
int * polyInts
int red [gdMaxColors]
int sx
int sy
int transparent
int ZeroDataBlock

Classes

struct  Point
 Point type for use in polygon drawing. More...

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index