php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "gd.h"
#include "gdhelpers.h"
#include "gd_errors.h"
#include "php.h"
Go to the source code of this file.
Data Structures | |
struct | RGBType |
struct | HWBType |
struct | seg |
Macros | |
#define | ASC(ch) |
#define | floor_cast(exp) |
#define | RETURN_HWB(h, w, b) |
#define | RETURN_RGB(r, g, b) |
#define | HWB_UNDEFINED -1 |
#define | SETUP_RGB(s, r, g, b) |
#define | MIN(a, b) |
#define | MIN3(a, b, c) |
#define | MAX(a, b) |
#define | MAX3(a, b, c) |
#define | BLEND_COLOR(a, nc, c, cc) |
#define | FILL_MAX ((int)(im->sy*im->sx)/4) |
#define | FILL_PUSH(Y, XL, XR, DY) |
#define | FILL_POP(Y, XL, XR, DY) |
Functions | |
void | gd_stderr_error (int priority, const char *format, va_list args) |
void | gd_error (const char *format,...) |
void | gd_error_ex (int priority, const char *format,...) |
void | gdSetErrorMethod (gdErrorMethod error_method) |
void | gdClearErrorMethod (void) |
int | gdImageGetTrueColorPixel (gdImagePtr im, int x, int y) |
gdImagePtr | gdImageCreate (int sx, int sy) |
gdImagePtr | gdImageCreateTrueColor (int sx, int sy) |
void | gdImageDestroy (gdImagePtr im) |
int | gdImageColorClosest (gdImagePtr im, int r, int g, int b) |
int | gdImageColorClosestAlpha (gdImagePtr im, int r, int g, int b, int a) |
int | gdImageColorClosestHWB (gdImagePtr im, int r, int g, int b) |
int | gdImageColorExact (gdImagePtr im, int r, int g, int b) |
int | gdImageColorExactAlpha (gdImagePtr im, int r, int g, int b, int a) |
int | gdImageColorAllocate (gdImagePtr im, int r, int g, int b) |
int | gdImageColorAllocateAlpha (gdImagePtr im, int r, int g, int b, int a) |
int | gdImageColorResolve (gdImagePtr im, int r, int g, int b) |
int | gdImageColorResolveAlpha (gdImagePtr im, int r, int g, int b, int a) |
void | gdImageColorDeallocate (gdImagePtr im, int color) |
void | gdImageColorTransparent (gdImagePtr im, int color) |
void | gdImagePaletteCopy (gdImagePtr to, gdImagePtr from) |
void | gdImageSetPixel (gdImagePtr im, int x, int y, int color) |
int | gdImageGetPixel (gdImagePtr im, int x, int y) |
void | gdImageAABlend (gdImagePtr im) |
gdImagePtr | gdImageClone (gdImagePtr src) |
void | gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) |
void | gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) |
void | gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) |
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) |
long | lsqrt (long n) |
void | gdImageArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color) |
void | gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color, int style) |
void | gdImageEllipse (gdImagePtr im, int mx, int my, int w, int h, int c) |
void | gdImageFilledEllipse (gdImagePtr im, int mx, int my, int w, int h, int c) |
void | gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) |
void | gdImageFill (gdImagePtr im, int x, int y, int nc) |
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) |
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 | gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH) |
void | gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c) |
void | gdImageOpenPolygon (gdImagePtr im, gdPointPtr p, int n, int c) |
int | gdCompareInt (const void *a, const void *b) |
void | gdImageFilledPolygon (gdImagePtr im, gdPointPtr p, int n, int c) |
void | gdImageSetStyle (gdImagePtr im, int *style, int noOfPixels) |
void | gdImageSetThickness (gdImagePtr im, int thickness) |
void | gdImageSetBrush (gdImagePtr im, gdImagePtr brush) |
void | gdImageSetTile (gdImagePtr im, gdImagePtr tile) |
void | gdImageSetAntiAliased (gdImagePtr im, int c) |
void | gdImageSetAntiAliasedDontBlend (gdImagePtr im, int c, int dont_blend) |
void | gdImageInterlace (gdImagePtr im, int interlaceArg) |
int | gdImageCompare (gdImagePtr im1, gdImagePtr im2) |
int | gdAlphaBlend (int dst, int src) |
void | gdImageAlphaBlending (gdImagePtr im, int alphaBlendingArg) |
void | gdImageSaveAlpha (gdImagePtr im, int saveAlphaArg) |
int | gdLayerOverlay (int dst, int src) |
int | gdLayerMultiply (int dst, int src) |
void | gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) |
void | gdImageGetClip (gdImagePtr im, int *x1P, int *y1P, int *x2P, int *y2P) |
void | gdImageSetResolution (gdImagePtr im, const unsigned int res_x, const unsigned int res_y) |
int | gdImagePaletteToTrueColor (gdImagePtr src) |
Variables | |
int | gdCosT [] |
int | gdSinT [] |
#define FILL_POP | ( | Y, | |
XL, | |||
XR, | |||
DY ) |
#define FILL_PUSH | ( | Y, | |
XL, | |||
XR, | |||
DY ) |
#define RETURN_HWB | ( | h, | |
w, | |||
b ) |
#define RETURN_RGB | ( | r, | |
g, | |||
b ) |
void gd_stderr_error | ( | int | priority, |
const char * | format, | ||
va_list | args ) |
void gdImageAABlend | ( | gdImagePtr | im | ) |
void gdImageAALine | ( | gdImagePtr | im, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | col ) |
void gdImageAlphaBlending | ( | gdImagePtr | im, |
int | alphaBlendingArg ) |
void gdImageArc | ( | gdImagePtr | im, |
int | cx, | ||
int | cy, | ||
int | w, | ||
int | h, | ||
int | s, | ||
int | e, | ||
int | color ) |
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 ) |
gdImagePtr gdImageClone | ( | gdImagePtr | src | ) |
int gdImageColorAllocate | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b ) |
int gdImageColorAllocateAlpha | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a ) |
int gdImageColorClosest | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b ) |
int gdImageColorClosestAlpha | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a ) |
int gdImageColorClosestHWB | ( | 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 gdImageColorExactAlpha | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a ) |
int gdImageColorResolve | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b ) |
int gdImageColorResolveAlpha | ( | gdImagePtr | im, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a ) |
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 gdImageCopyResampled | ( | gdImagePtr | dst, |
gdImagePtr | src, | ||
int | dstX, | ||
int | dstY, | ||
int | srcX, | ||
int | srcY, | ||
int | dstW, | ||
int | dstH, | ||
int | srcW, | ||
int | srcH ) |
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 gdImageCreateTrueColor | ( | int | sx, |
int | sy ) |
void gdImageDashedLine | ( | gdImagePtr | im, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color ) |
void gdImageDestroy | ( | gdImagePtr | im | ) |
void gdImageEllipse | ( | gdImagePtr | im, |
int | mx, | ||
int | my, | ||
int | w, | ||
int | h, | ||
int | c ) |
Integer Ellipse functions (gdImageEllipse and gdImageFilledEllipse) Function added by Pierre-Alain Joye 02/08/2003 (paj@p.nosp@m.earf.nosp@m.r.org) See the ellipse function simplification for the equation as well as the midpoint algorithm.
void gdImageFill | ( | gdImagePtr | im, |
int | x, | ||
int | y, | ||
int | nc ) |
void gdImageFilledArc | ( | gdImagePtr | im, |
int | cx, | ||
int | cy, | ||
int | w, | ||
int | h, | ||
int | s, | ||
int | e, | ||
int | color, | ||
int | style ) |
void gdImageFilledEllipse | ( | gdImagePtr | im, |
int | mx, | ||
int | my, | ||
int | w, | ||
int | h, | ||
int | c ) |
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 gdImageGetClip | ( | gdImagePtr | im, |
int * | x1P, | ||
int * | y1P, | ||
int * | x2P, | ||
int * | y2P ) |
int gdImageGetPixel | ( | gdImagePtr | im, |
int | x, | ||
int | y ) |
int gdImageGetTrueColorPixel | ( | 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 gdImageOpenPolygon | ( | gdImagePtr | im, |
gdPointPtr | p, | ||
int | n, | ||
int | c ) |
void gdImagePaletteCopy | ( | gdImagePtr | to, |
gdImagePtr | from ) |
int gdImagePaletteToTrueColor | ( | gdImagePtr | src | ) |
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 gdImageSaveAlpha | ( | gdImagePtr | im, |
int | saveAlphaArg ) |
void gdImageSetAntiAliased | ( | gdImagePtr | im, |
int | c ) |
void gdImageSetAntiAliasedDontBlend | ( | gdImagePtr | im, |
int | c, | ||
int | dont_blend ) |
void gdImageSetBrush | ( | gdImagePtr | im, |
gdImagePtr | brush ) |
void gdImageSetClip | ( | gdImagePtr | im, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 ) |
void gdImageSetPixel | ( | gdImagePtr | im, |
int | x, | ||
int | y, | ||
int | color ) |
void gdImageSetResolution | ( | gdImagePtr | im, |
const unsigned int | res_x, | ||
const unsigned int | res_y ) |
void gdImageSetStyle | ( | gdImagePtr | im, |
int * | style, | ||
int | noOfPixels ) |
void gdImageSetThickness | ( | gdImagePtr | im, |
int | thickness ) |
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 ) |
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 ) |
void gdSetErrorMethod | ( | gdErrorMethod | error_method | ) |
|
extern |
Definition at line 8 of file gdtables.c.
|
extern |
Definition at line 372 of file gdtables.c.