php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
struct | gdImageStruct |
struct | gdPointF |
struct | gdFont |
struct | gdRect |
struct | gdSource |
struct | gdFTStringExtra |
struct | gdPoint |
struct | gdSink |
struct | gdScatter |
Typedefs | |
typedef double(* | interpolation_method) (double) |
typedef struct gdImageStruct | gdImage |
typedef gdImage * | gdImagePtr |
typedef struct gdPointF * | gdPointFPtr |
typedef gdFont * | gdFontPtr |
typedef void(* | gdErrorMethod) (int, const char *, va_list) |
typedef struct gdRect * | gdRectPtr |
typedef struct gdSource * | gdSourcePtr |
typedef struct gdFTStringExtra * | gdFTStringExtraPtr |
typedef struct gdPoint * | gdPointPtr |
typedef struct gdSink * | gdSinkPtr |
typedef struct gdScatter * | gdScatterPtr |
Enumerations | |
enum | gdInterpolationMethod { GD_DEFAULT = 0 , GD_BELL , GD_BESSEL , GD_BILINEAR_FIXED , GD_BICUBIC , GD_BICUBIC_FIXED , GD_BLACKMAN , GD_BOX , GD_BSPLINE , GD_CATMULLROM , GD_GAUSSIAN , GD_GENERALIZED_CUBIC , GD_HERMITE , GD_HAMMING , GD_HANNING , GD_MITCHELL , GD_NEAREST_NEIGHBOUR , GD_POWER , GD_QUADRATIC , GD_SINC , GD_TRIANGLE , GD_WEIGHTED4 , GD_METHOD_COUNT = 21 } |
enum | gdPixelateMode { GD_PIXELATE_UPPERLEFT , GD_PIXELATE_AVERAGE } |
enum | gdCropMode { GD_CROP_DEFAULT = 0 , GD_CROP_TRANSPARENT , GD_CROP_BLACK , GD_CROP_WHITE , GD_CROP_SIDES , GD_CROP_THRESHOLD } |
enum | gdAffineStandardMatrix { GD_AFFINE_TRANSLATE = 0 , GD_AFFINE_SCALE , GD_AFFINE_ROTATE , GD_AFFINE_SHEAR_HORIZONTAL , GD_AFFINE_SHEAR_VERTICAL } |
#define GD_CMP_NUM_COLORS 2 /* Number of Colours in palette differ */ |
#define GD_CMP_TRUECOLOR 256 /* Truecolor vs palette differs */ |
#define gdImageAlpha | ( | im, | |
c ) |
#define gdImageBlue | ( | im, | |
c ) |
#define gdImageBoundsSafe | ( | im, | |
x, | |||
y ) |
#define gdImageCreatePalette gdImageCreate |
#define gdImageGreen | ( | im, | |
c ) |
#define gdImagePalettePixel | ( | im, | |
x, | |||
y ) |
#define gdImageRed | ( | im, | |
c ) |
#define gdImageTrueColorPixel | ( | im, | |
x, | |||
y ) |
#define gdTrueColor | ( | r, | |
g, | |||
b ) |
#define gdTrueColorGetAlpha | ( | c | ) |
#define gdWebpLossless 101 |
typedef struct gdFTStringExtra * gdFTStringExtraPtr |
typedef struct gdImageStruct gdImage |
typedef gdImage* gdImagePtr |
typedef struct gdPointF * gdPointFPtr |
typedef struct gdPoint * gdPointPtr |
typedef struct gdScatter * gdScatterPtr |
typedef struct gdSource * gdSourcePtr |
enum gdCropMode |
Group: Crop
Constants: gdCropMode GD_CROP_DEFAULT - Default crop mode (4 corners or background) GD_CROP_TRANSPARENT - Crop using the transparent color GD_CROP_BLACK - Crop black borders GD_CROP_WHITE - Crop white borders GD_CROP_SIDES - Crop using colors of the 4 corners
See also: <gdImageAutoCrop>
Enumerator | |
---|---|
GD_CROP_DEFAULT | |
GD_CROP_TRANSPARENT | |
GD_CROP_BLACK | |
GD_CROP_WHITE | |
GD_CROP_SIDES | |
GD_CROP_THRESHOLD |
Group: Transform
Constants: gdInterpolationMethod
GD_BELL - Bell GD_BESSEL - Bessel GD_BILINEAR_FIXED - fixed point bilinear GD_BICUBIC - Bicubic GD_BICUBIC_FIXED - fixed point bicubic integer GD_BLACKMAN - Blackman GD_BOX - Box GD_BSPLINE - BSpline GD_CATMULLROM - Catmullrom GD_GAUSSIAN - Gaussian GD_GENERALIZED_CUBIC - Generalized cubic GD_HERMITE - Hermite GD_HAMMING - Hamming GD_HANNING - Hannig GD_MITCHELL - Mitchell GD_NEAREST_NEIGHBOUR - Nearest neighbour interpolation GD_POWER - Power GD_QUADRATIC - Quadratic GD_SINC - Sinc GD_TRIANGLE - Triangle GD_WEIGHTED4 - 4 pixels weighted bilinear interpolation
See also: <gdSetInterpolationMethod>
enum gdPixelateMode |
int gdAffineApplyToPointF | ( | gdPointFPtr | dst, |
const gdPointFPtr | src, | ||
const double | affine[6] ) |
Title: Matrix Group: Affine Matrix Function: gdAffineApplyToPointF Applies an affine transformation to a point (floating point gdPointF)
Parameters: dst - Where to store the resulting point affine - Source Point flip_horz - affine matrix
Returns: GD_TRUE if the affine is rectilinear or GD_FALSE
Definition at line 27 of file gd_matrix.c.
int gdAffineConcat | ( | double | dst[6], |
const double | m1[6], | ||
const double | m2[6] ) |
Function: gdAffineConcat Concat (Multiply) two affine transformation matrices.
Concats two affine transforms together, i.e. the result will be the equivalent of doing first the transformation m1 and then m2. All parameters can be the same matrix (safe to call using the same array for all three arguments).
Parameters: dst - Where to store the resulting affine transform m1 - First affine matrix m2 - Second affine matrix
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 121 of file gd_matrix.c.
int gdAffineEqual | ( | const double | m1[6], |
const double | m2[6] ) |
Function: gdAffineEqual Determines whether two affine transformations are equal. A tolerance has been implemented using GD_EPSILON.
Parameters: m1 - The first affine transformation m2 - The first affine transformation
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 323 of file gd_matrix.c.
double gdAffineExpansion | ( | const double | src[6] | ) |
gdAffineexpansion: Find the affine's expansion factor. @src: The affine transformation.
Finds the expansion factor, i.e. the square root of the factor by which the affine transform affects area. In an affine transform composed of scaling, rotation, shearing, and translation, returns the amount of scaling.
GD_SUCCESS on success or GD_FAILURE
Definition at line 289 of file gd_matrix.c.
int gdAffineFlip | ( | double | dst[6], |
const double | src[6], | ||
const int | flip_h, | ||
const int | flip_v ) |
Function: gdAffineFlip Flip an affine transformation horizontally or vertically.
Flips the affine transform, giving GD_FALSE for <flip_horz> and <flip_vert> will clone the affine matrix. GD_TRUE for both will copy a 180° rotation.
Parameters: dst - Where to store the resulting affine transform src_affine - Original affine matrix flip_h - Whether or not to flip horizontally flip_v - Whether or not to flip vertically
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 93 of file gd_matrix.c.
int gdAffineIdentity | ( | double | dst[6] | ) |
Function: gdAffineIdentity Set up the identity matrix.
Parameters: dst - Where to store the resulting affine transform
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 150 of file gd_matrix.c.
int gdAffineInvert | ( | double | dst[6], |
const double | src[6] ) |
Function: gdAffineInvert Find the inverse of an affine transformation.
All non-degenerate affine transforms are invertible. Applying the inverted matrix will restore the original values. Multiplying <src> by <dst> (commutative) will return the identity affine (rounding error possible).
Parameters: dst - Where to store the resulting affine transform src_affine - Original affine matrix flip_horz - Whether or not to flip horizontally flip_vert - Whether or not to flip vertically
See also: <gdAffineIdentity>
Returns: GD_TRUE on success or GD_FALSE on failure
Definition at line 58 of file gd_matrix.c.
int gdAffineRectilinear | ( | const double | m[6] | ) |
Function: gdAffineRectilinear Determines whether the affine transformation is axis aligned. A tolerance has been implemented using GD_EPSILON.
Parameters: m - The affine transformation
Returns: GD_TRUE if the affine is rectilinear or GD_FALSE
Definition at line 305 of file gd_matrix.c.
int gdAffineRotate | ( | double | dst[6], |
const double | angle ) |
Function: gdAffineRotate Set up a rotation affine transform.
Like the other angle in libGD, in which increasing y moves downward, this is a counterclockwise rotation.
Parameters: dst - Where to store the resulting affine transform angle - Rotation angle in degrees
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 197 of file gd_matrix.c.
int gdAffineScale | ( | double | dst[6], |
const double | scale_x, | ||
const double | scale_y ) |
Function: gdAffineScale Set up a scaling matrix.
Parameters: scale_x - X scale factor scale_y - Y scale factor
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 172 of file gd_matrix.c.
int gdAffineShearHorizontal | ( | double | dst[6], |
const double | angle ) |
Function: gdAffineShearHorizontal Set up a horizontal shearing matrix || becomes \.
Parameters: dst - Where to store the resulting affine transform angle - Shear angle in degrees
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 222 of file gd_matrix.c.
int gdAffineShearVertical | ( | double | dst[6], |
const double | angle ) |
Function: gdAffineShearVertical Set up a vertical shearing matrix, columns are untouched.
Parameters: dst - Where to store the resulting affine transform angle - Shear angle in degrees
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 244 of file gd_matrix.c.
int gdAffineTranslate | ( | double | dst[6], |
const double | offset_x, | ||
const double | offset_y ) |
Function: gdAffineTranslate Set up a translation matrix.
Parameters: dst - Where to store the resulting affine transform offset_x - Horizontal translation amount offset_y - Vertical translation amount
Returns: GD_SUCCESS on success or GD_FAILURE
Definition at line 267 of file gd_matrix.c.
Definition at line 95 of file gd_io_dp.c.
int gdFontCacheSetup | ( | void | ) |
void gdImageAABlend | ( | gdImagePtr | im | ) |
void gdImageAALine | ( | gdImagePtr | im, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color ) |
void gdImageAlphaBlending | ( | gdImagePtr | im, |
int | alphaBlendingArg ) |
void gdImageAntialias | ( | gdImagePtr | im, |
int | antialias ) |
void gdImageArc | ( | gdImagePtr | im, |
int | cx, | ||
int | cy, | ||
int | w, | ||
int | h, | ||
int | s, | ||
int | e, | ||
int | color ) |
void gdImageAvif | ( | gdImagePtr | im, |
FILE * | outfile ) |
void gdImageAvifCtx | ( | gdImagePtr | im, |
gdIOCtx * | outfile, | ||
int | quality, | ||
int | speed ) |
void gdImageAvifEx | ( | gdImagePtr | im, |
FILE * | outfile, | ||
int | quality, | ||
int | speed ) |
void * gdImageAvifPtr | ( | gdImagePtr | im, |
int * | size ) |
void * gdImageAvifPtrEx | ( | gdImagePtr | im, |
int * | size, | ||
int | quality, | ||
int | speed ) |
void gdImageBmp | ( | gdImagePtr | im, |
FILE * | outFile, | ||
int | compression ) |
void gdImageBmpCtx | ( | gdImagePtr | im, |
gdIOCtxPtr | out, | ||
int | compression ) |
void * gdImageBmpPtr | ( | gdImagePtr | im, |
int * | size, | ||
int | compression ) |
int gdImageBrightness | ( | gdImagePtr | src, |
int | brightness ) |
Definition at line 187 of file gd_filter.c.
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 gdImageColor | ( | gdImagePtr | src, |
const int | red, | ||
const int | green, | ||
const int | blue, | ||
const int | alpha ) |
Definition at line 292 of file gd_filter.c.
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 gdImageColorMatch | ( | gdImagePtr | im1, |
gdImagePtr | im2 ) |
Definition at line 10 of file gd_color_match.c.
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 ) |
int gdImageContrast | ( | gdImagePtr | src, |
double | contrast ) |
Definition at line 232 of file gd_filter.c.
int gdImageConvolution | ( | gdImagePtr | src, |
float | ft[3][3], | ||
float | filter_div, | ||
float | offset ) |
Definition at line 335 of file gd_filter.c.
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 gdImageCreateFromAvif | ( | FILE * | infile | ) |
gdImagePtr gdImageCreateFromAvifCtx | ( | gdIOCtx * | infile | ) |
gdImagePtr gdImageCreateFromAvifPtr | ( | int | size, |
void * | data ) |
gdImagePtr gdImageCreateFromBmp | ( | FILE * | inFile | ) |
gdImagePtr gdImageCreateFromBmpCtx | ( | gdIOCtxPtr | infile | ) |
gdImagePtr gdImageCreateFromBmpPtr | ( | int | size, |
void * | data ) |
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 gdImageCreateFromGif | ( | FILE * | fd | ) |
Definition at line 115 of file gd_gif_in.c.
gdImagePtr gdImageCreateFromGifCtx | ( | gdIOCtxPtr | in | ) |
Definition at line 128 of file gd_gif_in.c.
gdImagePtr gdImageCreateFromGifSource | ( | gdSourcePtr | in | ) |
Definition at line 102 of file gd_gif_in.c.
gdImagePtr gdImageCreateFromJpeg | ( | FILE * | infile | ) |
gdImagePtr gdImageCreateFromJpegCtx | ( | gdIOCtx * | infile | ) |
gdImagePtr gdImageCreateFromJpegCtxEx | ( | gdIOCtx * | infile, |
int | ignore_warning ) |
gdImagePtr gdImageCreateFromJpegEx | ( | FILE * | infile, |
int | ignore_warning ) |
gdImagePtr gdImageCreateFromJpegPtr | ( | int | size, |
void * | data ) |
gdImagePtr gdImageCreateFromJpegPtrEx | ( | int | size, |
void * | data, | ||
int | ignore_warning ) |
gdImagePtr gdImageCreateFromPng | ( | FILE * | fd | ) |
gdImagePtr gdImageCreateFromPngCtx | ( | gdIOCtxPtr | in | ) |
gdImagePtr gdImageCreateFromPngSource | ( | gdSourcePtr | in | ) |
gdImagePtr gdImageCreateFromTga | ( | FILE * | fp | ) |
gdImagePtr gdImageCreateFromTgaCtx | ( | gdIOCtx * | ctx | ) |
gdImagePtr gdImageCreateFromTgaPtr | ( | int | size, |
void * | data ) |
gdImagePtr gdImageCreateFromWBMP | ( | FILE * | inFile | ) |
gdImagePtr gdImageCreateFromWBMPCtx | ( | gdIOCtx * | infile | ) |
gdImagePtr gdImageCreateFromWebp | ( | FILE * | fd | ) |
gdImagePtr gdImageCreateFromWebpCtx | ( | gdIOCtxPtr | in | ) |
gdImagePtr gdImageCreateFromWebpPtr | ( | int | size, |
void * | data ) |
gdImagePtr gdImageCreateFromXbm | ( | FILE * | fd | ) |
gdImagePtr gdImageCreateFromXpm | ( | char * | filename | ) |
gdImagePtr gdImageCreatePaletteFromTrueColor | ( | gdImagePtr | im, |
int | ditherFlag, | ||
int | colorsWanted ) |
Definition at line 1431 of file gd_topal.c.
gdImagePtr gdImageCreateTrueColor | ( | int | sx, |
int | sy ) |
gdImagePtr gdImageCrop | ( | gdImagePtr | src, |
const gdRectPtr | crop ) |
gdImagePtr gdImageCropAuto | ( | gdImagePtr | im, |
const unsigned int | mode ) |
gdImagePtr gdImageCropThreshold | ( | gdImagePtr | im, |
const unsigned int | color, | ||
const float | threshold ) |
Function: gdImageThresholdCrop Crop an image using a given color. The threshold argument defines the tolerance to be used while comparing the image color and the color to crop. The method used to calculate the color difference is based on the color distance in the RGB(a) cube.
Parameters: im - Source image color - color to crop threshold - tolerance (0..100)
Returns: <gdImagePtr> on success or NULL
See also: <gdCropMode>, <gdImageAutoCrop> or <gdImageCrop>
void gdImageDashedLine | ( | gdImagePtr | im, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color ) |
void gdImageDestroy | ( | gdImagePtr | im | ) |
int gdImageEdgeDetectQuick | ( | gdImagePtr | src | ) |
Definition at line 516 of file gd_filter.c.
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.
int gdImageEmboss | ( | gdImagePtr | im | ) |
Definition at line 534 of file gd_filter.c.
void gdImageFill | ( | gdImagePtr | im, |
int | x, | ||
int | y, | ||
int | color ) |
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 | cx, | ||
int | cy, | ||
int | w, | ||
int | h, | ||
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 gdImageFlipBoth | ( | gdImagePtr | im | ) |
Definition at line 67 of file gd_transform.c.
void gdImageFlipHorizontal | ( | gdImagePtr | im | ) |
Definition at line 31 of file gd_transform.c.
void gdImageFlipVertical | ( | gdImagePtr | im | ) |
Definition at line 3 of file gd_transform.c.
int gdImageGaussianBlur | ( | gdImagePtr | im | ) |
Definition at line 525 of file gd_filter.c.
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 ) |
void gdImageGetClip | ( | gdImagePtr | im, |
int * | x1P, | ||
int * | y1P, | ||
int * | x2P, | ||
int * | y2P ) |
gdInterpolationMethod gdImageGetInterpolationMethod | ( | gdImagePtr | im | ) |
Function: gdImageGetInterpolationMethod
Get the current interpolation method
This is here so that the value can be read via a language or VM with an FFI but no (portable) way to extract the value from the struct.
Parameters: im - The image.
Returns: The current interpolation method.
See also:
Definition at line 2563 of file gd_interpolation.c.
int gdImageGetPixel | ( | gdImagePtr | im, |
int | x, | ||
int | y ) |
int gdImageGetTrueColorPixel | ( | gdImagePtr | im, |
int | x, | ||
int | y ) |
void gdImageGif | ( | gdImagePtr | im, |
FILE * | out ) |
Definition at line 115 of file gd_gif_out.c.
void gdImageGifCtx | ( | gdImagePtr | im, |
gdIOCtx * | out ) |
int gdImageGrayScale | ( | gdImagePtr | src | ) |
Definition at line 147 of file gd_filter.c.
void gdImageInterlace | ( | gdImagePtr | im, |
int | interlaceArg ) |
void gdImageJpeg | ( | gdImagePtr | im, |
FILE * | out, | ||
int | quality ) |
void gdImageJpegCtx | ( | gdImagePtr | im, |
gdIOCtx * | out, | ||
int | quality ) |
void * gdImageJpegPtr | ( | gdImagePtr | im, |
int * | size, | ||
int | quality ) |
void gdImageLine | ( | gdImagePtr | im, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color ) |
int gdImageMeanRemoval | ( | gdImagePtr | im | ) |
Definition at line 548 of file gd_filter.c.
int gdImageNegate | ( | gdImagePtr | src | ) |
Definition at line 114 of file gd_filter.c.
void gdImageOpenPolygon | ( | gdImagePtr | im, |
gdPointPtr | p, | ||
int | n, | ||
int | c ) |
void gdImagePaletteCopy | ( | gdImagePtr | dst, |
gdImagePtr | src ) |
int gdImagePaletteToTrueColor | ( | gdImagePtr | src | ) |
int gdImagePixelate | ( | gdImagePtr | im, |
int | block_size, | ||
const unsigned int | mode ) |
Definition at line 3 of file gd_pixelate.c.
void gdImagePng | ( | gdImagePtr | im, |
FILE * | out ) |
void gdImagePngCtx | ( | gdImagePtr | im, |
gdIOCtx * | out ) |
void gdImagePngCtxEx | ( | gdImagePtr | im, |
gdIOCtx * | out, | ||
int | level, | ||
int | basefilter ) |
void gdImagePngEx | ( | gdImagePtr | im, |
FILE * | out, | ||
int | level, | ||
int | basefilter ) |
void * gdImagePngPtr | ( | gdImagePtr | im, |
int * | size ) |
void * gdImagePngPtrEx | ( | gdImagePtr | im, |
int * | size, | ||
int | level, | ||
int | basefilter ) |
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 ) |
gdImagePtr gdImageRotate180 | ( | gdImagePtr | src, |
int | ignoretransparent ) |
Definition at line 248 of file gd_rotate.c.
gdImagePtr gdImageRotate270 | ( | gdImagePtr | src, |
int | ignoretransparent ) |
Definition at line 296 of file gd_rotate.c.
gdImagePtr gdImageRotate90 | ( | gdImagePtr | src, |
int | ignoretransparent ) |
Definition at line 201 of file gd_rotate.c.
gdImagePtr gdImageRotateBicubicFixed | ( | gdImagePtr | src, |
const float | degrees, | ||
const int | bgColor ) |
Definition at line 1857 of file gd_interpolation.c.
gdImagePtr gdImageRotateBilinear | ( | gdImagePtr | src, |
const float | degrees, | ||
const int | bgColor ) |
Definition at line 1742 of file gd_interpolation.c.
gdImagePtr gdImageRotateGeneric | ( | gdImagePtr | src, |
const float | degrees, | ||
const int | bgColor ) |
Definition at line 1688 of file gd_interpolation.c.
gdImagePtr gdImageRotateInterpolated | ( | const gdImagePtr | src, |
const float | angle, | ||
int | bgcolor ) |
Definition at line 2123 of file gd_interpolation.c.
gdImagePtr gdImageRotateNearestNeighbour | ( | gdImagePtr | src, |
const float | degrees, | ||
const int | bgColor ) |
Definition at line 1631 of file gd_interpolation.c.
void gdImageSaveAlpha | ( | gdImagePtr | im, |
int | saveAlphaArg ) |
gdImagePtr gdImageScale | ( | const gdImagePtr | src, |
const unsigned int | new_width, | ||
const unsigned int | new_height ) |
Definition at line 1577 of file gd_interpolation.c.
gdImagePtr gdImageScaleBicubic | ( | gdImagePtr | src_img, |
const unsigned int | new_width, | ||
const unsigned int | new_height ) |
gdImagePtr gdImageScaleBicubicFixed | ( | gdImagePtr | src, |
const unsigned int | width, | ||
const unsigned int | height ) |
Definition at line 1352 of file gd_interpolation.c.
gdImagePtr gdImageScaleBilinear | ( | gdImagePtr | im, |
const unsigned int | new_width, | ||
const unsigned int | new_height ) |
Definition at line 1343 of file gd_interpolation.c.
gdImagePtr gdImageScaleNearestNeighbour | ( | gdImagePtr | im, |
const unsigned int | width, | ||
const unsigned int | height ) |
Definition at line 1097 of file gd_interpolation.c.
gdImagePtr gdImageScaleTwoPass | ( | const gdImagePtr | pOrigImage, |
const unsigned int | uOrigWidth, | ||
const unsigned int | uOrigHeight, | ||
const unsigned int | uNewWidth, | ||
const unsigned int | uNewHeight ) |
Definition at line 1048 of file gd_interpolation.c.
int gdImageScatter | ( | gdImagePtr | im, |
int | sub, | ||
int | plus ) |
Definition at line 29 of file gd_filter.c.
int gdImageScatterColor | ( | gdImagePtr | im, |
int | sub, | ||
int | plus, | ||
int | colors[], | ||
unsigned int | num_colors ) |
Definition at line 40 of file gd_filter.c.
int gdImageScatterEx | ( | gdImagePtr | im, |
gdScatterPtr | s ) |
Definition at line 52 of file gd_filter.c.
int gdImageSelectiveBlur | ( | gdImagePtr | src | ) |
Definition at line 397 of file gd_filter.c.
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 ) |
int gdImageSetInterpolationMethod | ( | gdImagePtr | im, |
gdInterpolationMethod | id ) |
Definition at line 2466 of file gd_interpolation.c.
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 ) |
int gdImageSmooth | ( | gdImagePtr | im, |
float | weight ) |
Definition at line 557 of file gd_filter.c.
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 * gdImageStringFT | ( | gdImage * | im, |
int * | brect, | ||
int | fg, | ||
char * | fontlist, | ||
double | ptsize, | ||
double | angle, | ||
int | x, | ||
int | y, | ||
char * | string ) |
char * gdImageStringFTEx | ( | gdImage * | im, |
int * | brect, | ||
int | fg, | ||
char * | fontlist, | ||
double | ptsize, | ||
double | angle, | ||
int | x, | ||
int | y, | ||
char * | string, | ||
gdFTStringExtraPtr | strex ) |
char * gdImageStringTTF | ( | gdImage * | im, |
int * | brect, | ||
int | fg, | ||
char * | fontlist, | ||
double | ptsize, | ||
double | angle, | ||
int | x, | ||
int | y, | ||
char * | string ) |
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 ) |
int gdImageTrueColorToPalette | ( | gdImagePtr | im, |
int | ditherFlag, | ||
int | colorsWanted ) |
Definition at line 1440 of file gd_topal.c.
void gdImageWBMP | ( | gdImagePtr | image, |
int | fg, | ||
FILE * | out ) |
void gdImageWBMPCtx | ( | gdImagePtr | image, |
int | fg, | ||
gdIOCtx * | out ) |
void * gdImageWBMPPtr | ( | gdImagePtr | im, |
int * | size, | ||
int | fg ) |
void gdImageWebpCtx | ( | gdImagePtr | im, |
gdIOCtx * | outfile, | ||
int | quality ) |
void gdImageXbmCtx | ( | gdImagePtr | image, |
char * | file_name, | ||
int | fg, | ||
gdIOCtx * | out ) |
const char * gdJpegGetVersionString | ( | void | ) |
Definition at line 65 of file gd_io_dp.c.
Definition at line 70 of file gd_io_dp.c.
gdIOCtx * gdNewFileCtx | ( | FILE * | f | ) |
Definition at line 49 of file gd_io_file.c.
gdIOCtx * gdNewSSCtx | ( | gdSourcePtr | in, |
gdSinkPtr | out ) |
Definition at line 50 of file gd_io_ss.c.
const char * gdPngGetVersionString | ( | void | ) |
void gdSetErrorMethod | ( | gdErrorMethod | error_method | ) |
Function: gdTransformAffineBoundingBox Returns the bounding box of an affine transformation applied to a rectangular area <gdRect>
Parameters: src - Rectangular source area for the affine transformation affine - the affine transformation bbox - the resulting bounding box
Returns: GD_TRUE if the affine is rectilinear or GD_FALSE
Definition at line 2426 of file gd_interpolation.c.
int gdTransformAffineCopy | ( | gdImagePtr | dst, |
int | dst_x, | ||
int | dst_y, | ||
const gdImagePtr | src, | ||
gdRectPtr | src_region, | ||
const double | affine[6] ) |
Function: gdTransformAffineCopy Applies an affine transformation to a region and copy the result in a destination to the given position.
Parameters: dst - Image to draw the transformed image src - Source image dstX - X position in the destination image dstY - Y position in the destination image src_area - Rectangular region to rotate in the src image
Returns: GD_TRUE on success or GD_FALSE on failure
Definition at line 2301 of file gd_interpolation.c.
int gdTransformAffineGetImage | ( | gdImagePtr * | dst, |
const gdImagePtr | src, | ||
gdRectPtr | src_area, | ||
const double | affine[6] ) |
Function: gdTransformAffineGetImage Applies an affine transformation to a region and return an image containing the complete transformation.
Parameters: dst - Pointer to a gdImagePtr to store the created image, NULL when the creation or the transformation failed src - Source image src_area - rectangle defining the source region to transform dstY - Y position in the destination image affine - The desired affine transformation
Returns: GD_TRUE if the affine is rectilinear or GD_FALSE
Definition at line 2235 of file gd_interpolation.c.