G:/ScriptBasic/source/extensions/gd/gd.h File Reference

#include <stdio.h>
#include "gd_io.h"

Go to the source code of this file.

Data Structures

struct  gdImageStruct
struct  gdFont
struct  gdSource
struct  gdPoint
struct  gdSink

Defines

#define GD_H   1
#define gdMaxColors   256
#define gdDashSize   4
#define gdStyled   (-2)
#define gdBrushed   (-3)
#define gdStyledBrushed   (-4)
#define gdTiled   (-5)
#define gdTransparent   (-6)
#define gdImageSX(im)   ((im)->sx)
#define gdImageSY(im)   ((im)->sy)
#define gdImageColorsTotal(im)   ((im)->colorsTotal)
#define gdImageRed(im, c)   ((im)->red[(c)])
#define gdImageGreen(im, c)   ((im)->green[(c)])
#define gdImageBlue(im, c)   ((im)->blue[(c)])
#define gdImageGetTransparent(im)   ((im)->transparent)
#define gdImageGetInterlaced(im)   ((im)->interlace)
#define GD2_CHUNKSIZE   128
#define GD2_CHUNKSIZE_MIN   64
#define GD2_CHUNKSIZE_MAX   4096
#define GD2_VERS   1
#define GD2_ID   "gd2"
#define GD2_FMT_RAW   1
#define GD2_FMT_COMPRESSED   2
#define GD_CMP_IMAGE   1
#define GD_CMP_NUM_COLORS   2
#define GD_CMP_COLOR   4
#define GD_CMP_SIZE_X   8
#define GD_CMP_SIZE_Y   16
#define GD_CMP_TRANSPARENT   32
#define GD_CMP_BACKGROUND   64
#define GD_CMP_INTERLACE   128

Typedefs

typedef gdImageStruct gdImage
typedef gdImagegdImagePtr
typedef gdFontgdFontPtr
typedef struct gdSourcegdSourcePtr
typedef struct gdPointgdPointPtr
typedef struct gdSinkgdSinkPtr

Functions

gdImagePtr gdImageCreate (int sx, int sy)
gdImagePtr gdImageCreateFromPng (FILE *fd)
gdImagePtr gdImageCreateFromPngCtx (gdIOCtxPtr in)
gdImagePtr gdImageCreateFromPngSource (gdSourcePtr in)
gdImagePtr gdImageCreateFromGd (FILE *in)
gdImagePtr gdImageCreateFromGdCtx (gdIOCtxPtr in)
gdImagePtr gdImageCreateFromGd2 (FILE *in)
gdImagePtr gdImageCreateFromGd2Ctx (gdIOCtxPtr in)
gdImagePtr gdImageCreateFromGd2Part (FILE *in, int srcx, int srcy, int w, int h)
gdImagePtr gdImageCreateFromGd2PartCtx (gdIOCtxPtr in, int srcx, int srcy, int w, int h)
gdImagePtr gdImageCreateFromXbm (FILE *fd)
void gdImageDestroy (gdImagePtr im)
void gdImageSetPixel (gdImagePtr im, int x, int y, int color)
int gdImageGetPixel (gdImagePtr im, int x, int y)
void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
int gdImageBoundsSafe (gdImagePtr im, int x, int y)
void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color)
void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color)
void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color)
void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color)
char * gdImageStringTTF (gdImage *im, int *brect, int fg, char *fontname, double ptsize, double angle, int x, int y, char *string)
void gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c)
void gdImageFilledPolygon (gdImagePtr im, gdPointPtr p, int n, int c)
int gdImageColorAllocate (gdImagePtr im, int r, int g, int b)
int gdImageColorClosest (gdImagePtr im, int r, int g, int b)
int gdImageColorExact (gdImagePtr im, int r, int g, int b)
int gdImageColorResolve (gdImagePtr im, int r, int g, int b)
void gdImageColorDeallocate (gdImagePtr im, int color)
void gdImageColorTransparent (gdImagePtr im, int color)
void gdImagePaletteCopy (gdImagePtr dst, gdImagePtr src)
void gdImagePng (gdImagePtr im, FILE *out)
void gdImagePngCtx (gdImagePtr im, gdIOCtx *out)
void gdImagePngToSink (gdImagePtr im, gdSinkPtr out)
void gdImageGd (gdImagePtr im, FILE *out)
void gdImageGd2 (gdImagePtr im, FILE *out, int cs, int fmt)
void * gdImagePngPtr (gdImagePtr im, int *size)
void * gdImageGdPtr (gdImagePtr im, int *size)
void * gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size)
void gdImageArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color)
void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color)
void gdImageFill (gdImagePtr im, int x, int y, int color)
void gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h)
void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct)
void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct)
void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH)
void gdImageSetBrush (gdImagePtr im, gdImagePtr brush)
void gdImageSetTile (gdImagePtr im, gdImagePtr tile)
void gdImageSetStyle (gdImagePtr im, int *style, int noOfPixels)
void gdImageInterlace (gdImagePtr im, int interlaceArg)
gdIOCtxgdNewFileCtx (FILE *)
gdIOCtxgdNewDynamicCtx (int, void *)
gdIOCtxgdNewSSCtx (gdSourcePtr in, gdSinkPtr out)
void * gdDPExtractData (struct gdIOCtx *ctx, int *size)
int gdImageCompare (gdImagePtr im1, gdImagePtr im2)


Define Documentation

#define GD2_CHUNKSIZE   128
 

Definition at line 212 of file gd.h.

#define GD2_CHUNKSIZE_MAX   4096
 

Definition at line 214 of file gd.h.

#define GD2_CHUNKSIZE_MIN   64
 

Definition at line 213 of file gd.h.

#define GD2_FMT_COMPRESSED   2
 

Definition at line 219 of file gd.h.

#define GD2_FMT_RAW   1
 

Definition at line 218 of file gd.h.

#define GD2_ID   "gd2"
 

Definition at line 217 of file gd.h.

#define GD2_VERS   1
 

Definition at line 216 of file gd.h.

#define GD_CMP_BACKGROUND   64
 

Definition at line 230 of file gd.h.

#define GD_CMP_COLOR   4
 

Definition at line 226 of file gd.h.

#define GD_CMP_IMAGE   1
 

Definition at line 224 of file gd.h.

#define GD_CMP_INTERLACE   128
 

Definition at line 231 of file gd.h.

#define GD_CMP_NUM_COLORS   2
 

Definition at line 225 of file gd.h.

#define GD_CMP_SIZE_X   8
 

Definition at line 227 of file gd.h.

#define GD_CMP_SIZE_Y   16
 

Definition at line 228 of file gd.h.

#define GD_CMP_TRANSPARENT   32
 

Definition at line 229 of file gd.h.

#define GD_H   1
 

Definition at line 2 of file gd.h.

#define gdBrushed   (-3)
 

Definition at line 81 of file gd.h.

#define gdDashSize   4
 

Definition at line 76 of file gd.h.

#define gdImageBlue im,
 )     ((im)->blue[(c)])
 

Definition at line 200 of file gd.h.

Referenced by besFUNCTION().

#define gdImageColorsTotal im   )     ((im)->colorsTotal)
 

Definition at line 197 of file gd.h.

#define gdImageGetInterlaced im   )     ((im)->interlace)
 

Definition at line 202 of file gd.h.

#define gdImageGetTransparent im   )     ((im)->transparent)
 

Definition at line 201 of file gd.h.

#define gdImageGreen im,
 )     ((im)->green[(c)])
 

Definition at line 199 of file gd.h.

Referenced by besFUNCTION().

#define gdImageRed im,
 )     ((im)->red[(c)])
 

Definition at line 198 of file gd.h.

Referenced by besFUNCTION().

#define gdImageSX im   )     ((im)->sx)
 

Definition at line 195 of file gd.h.

#define gdImageSY im   )     ((im)->sy)
 

Definition at line 196 of file gd.h.

#define gdMaxColors   256
 

Definition at line 25 of file gd.h.

#define gdStyled   (-2)
 

Definition at line 80 of file gd.h.

#define gdStyledBrushed   (-4)
 

Definition at line 82 of file gd.h.

#define gdTiled   (-5)
 

Definition at line 83 of file gd.h.

#define gdTransparent   (-6)
 

Definition at line 87 of file gd.h.

Referenced by if().


Typedef Documentation

typedef gdFont* gdFontPtr
 

Definition at line 71 of file gd.h.

typedef struct gdImageStruct gdImage
 

typedef gdImage* gdImagePtr
 

Definition at line 54 of file gd.h.

typedef struct gdPoint * gdPointPtr
 

typedef struct gdSink * gdSinkPtr
 

typedef struct gdSource * gdSourcePtr
 


Function Documentation

void* gdDPExtractData struct gdIOCtx ctx,
int *  size
 

void gdImageArc gdImagePtr  im,
int  cx,
int  cy,
int  w,
int  h,
int  s,
int  e,
int  color
 

int gdImageBoundsSafe gdImagePtr  im,
int  x,
int  y
 

void gdImageChar gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
int  c,
int  color
 

void gdImageCharUp gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
int  c,
int  color
 

int gdImageColorAllocate gdImagePtr  im,
int  r,
int  g,
int  b
 

int gdImageColorClosest gdImagePtr  im,
int  r,
int  g,
int  b
 

void gdImageColorDeallocate gdImagePtr  im,
int  color
 

int gdImageColorExact gdImagePtr  im,
int  r,
int  g,
int  b
 

int gdImageColorResolve gdImagePtr  im,
int  r,
int  g,
int  b
 

void gdImageColorTransparent gdImagePtr  im,
int  color
 

int gdImageCompare gdImagePtr  im1,
gdImagePtr  im2
 

void gdImageCopy gdImagePtr  dst,
gdImagePtr  src,
int  dstX,
int  dstY,
int  srcX,
int  srcY,
int  w,
int  h
 

void gdImageCopyMerge gdImagePtr  dst,
gdImagePtr  src,
int  dstX,
int  dstY,
int  srcX,
int  srcY,
int  w,
int  h,
int  pct
 

void gdImageCopyMergeGray gdImagePtr  dst,
gdImagePtr  src,
int  dstX,
int  dstY,
int  srcX,
int  srcY,
int  w,
int  h,
int  pct
 

void gdImageCopyResized gdImagePtr  dst,
gdImagePtr  src,
int  dstX,
int  dstY,
int  srcX,
int  srcY,
int  dstW,
int  dstH,
int  srcW,
int  srcH
 

gdImagePtr gdImageCreate int  sx,
int  sy
 

gdImagePtr gdImageCreateFromGd FILE *  in  ) 
 

gdImagePtr gdImageCreateFromGd2 FILE *  in  ) 
 

gdImagePtr gdImageCreateFromGd2Ctx gdIOCtxPtr  in  ) 
 

gdImagePtr gdImageCreateFromGd2Part FILE *  in,
int  srcx,
int  srcy,
int  w,
int  h
 

gdImagePtr gdImageCreateFromGd2PartCtx gdIOCtxPtr  in,
int  srcx,
int  srcy,
int  w,
int  h
 

gdImagePtr gdImageCreateFromGdCtx gdIOCtxPtr  in  ) 
 

gdImagePtr gdImageCreateFromPng FILE *  fd  ) 
 

gdImagePtr gdImageCreateFromPngCtx gdIOCtxPtr  in  ) 
 

gdImagePtr gdImageCreateFromPngSource gdSourcePtr  in  ) 
 

gdImagePtr gdImageCreateFromXbm FILE *  fd  ) 
 

void gdImageDashedLine gdImagePtr  im,
int  x1,
int  y1,
int  x2,
int  y2,
int  color
 

void gdImageDestroy gdImagePtr  im  ) 
 

Referenced by besFUNCTION().

void gdImageFill gdImagePtr  im,
int  x,
int  y,
int  color
 

void gdImageFilledPolygon gdImagePtr  im,
gdPointPtr  p,
int  n,
int  c
 

void gdImageFilledRectangle gdImagePtr  im,
int  x1,
int  y1,
int  x2,
int  y2,
int  color
 

void gdImageFillToBorder gdImagePtr  im,
int  x,
int  y,
int  border,
int  color
 

void gdImageGd gdImagePtr  im,
FILE *  out
 

void gdImageGd2 gdImagePtr  im,
FILE *  out,
int  cs,
int  fmt
 

void* gdImageGd2Ptr gdImagePtr  im,
int  cs,
int  fmt,
int *  size
 

void* gdImageGdPtr gdImagePtr  im,
int *  size
 

int gdImageGetPixel gdImagePtr  im,
int  x,
int  y
 

void gdImageInterlace gdImagePtr  im,
int  interlaceArg
 

void gdImageLine gdImagePtr  im,
int  x1,
int  y1,
int  x2,
int  y2,
int  color
 

void gdImagePaletteCopy gdImagePtr  dst,
gdImagePtr  src
 

void gdImagePng gdImagePtr  im,
FILE *  out
 

void gdImagePngCtx gdImagePtr  im,
gdIOCtx out
 

void* gdImagePngPtr gdImagePtr  im,
int *  size
 

void gdImagePngToSink gdImagePtr  im,
gdSinkPtr  out
 

void gdImagePolygon gdImagePtr  im,
gdPointPtr  p,
int  n,
int  c
 

void gdImageRectangle gdImagePtr  im,
int  x1,
int  y1,
int  x2,
int  y2,
int  color
 

void gdImageSetBrush gdImagePtr  im,
gdImagePtr  brush
 

void gdImageSetPixel gdImagePtr  im,
int  x,
int  y,
int  color
 

void gdImageSetStyle gdImagePtr  im,
int *  style,
int  noOfPixels
 

void gdImageSetTile gdImagePtr  im,
gdImagePtr  tile
 

void gdImageString gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned char *  s,
int  color
 

void gdImageString16 gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned short *  s,
int  color
 

char* gdImageStringTTF gdImage im,
int *  brect,
int  fg,
char *  fontname,
double  ptsize,
double  angle,
int  x,
int  y,
char *  string
 

Referenced by if().

void gdImageStringUp gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned char *  s,
int  color
 

void gdImageStringUp16 gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned short *  s,
int  color
 

gdIOCtx* gdNewDynamicCtx int  ,
void * 
 

gdIOCtx* gdNewFileCtx FILE *   ) 
 

gdIOCtx* gdNewSSCtx gdSourcePtr  in,
gdSinkPtr  out
 


Generated on Sun Mar 12 23:56:36 2006 for ScriptBasic by  doxygen 1.4.6-NO