Applies an affine transformation to a point (floating point gdPointF)
int gdAffineApplyToPointF ( gdPointFPtr dst, const gdPointFPtr src, const double affine[6] )
Concat (Multiply) two affine transformation matrices.
int gdAffineConcat ( double dst[6], const double m1[6], const double m2[6] )
Determines whether two affine transformations are equal.
int gdAffineEqual ( const double m1[6], const double m2[6] )
Flip an affine transformation horizontally or vertically.
int gdAffineFlip ( double dst[6], const double src[6], const int flip_h, const int flip_v )
Set up the identity matrix.
int gdAffineIdentity ( double dst[6] )
Find the inverse of an affine transformation.
int gdAffineInvert ( double dst[6], const double src[6] )
Determines whether the affine transformation is axis aligned.
int gdAffineRectilinear ( const double m[6] )
Set up a rotation affine transform.
int gdAffineRotate ( double dst[6], const double angle )
Set up a scaling matrix.
int gdAffineScale ( double dst[6], const double scale_x, const double scale_y )
Set up a horizontal shearing matrix || becomes \\.
int gdAffineShearHorizontal( double dst[6], const double angle )
Set up a vertical shearing matrix, columns are untouched.
int gdAffineShearVertical( double dst[6], const double angle )
Set up a translation matrix.
int gdAffineTranslate ( double dst[6], const double offset_x, const double offset_y )
int gdAlphaBlend ( int dst, int src )
void gdClearErrorMethod( void )
int gdColorMapLookup( const gdColorMap color_map, const char * color_name, int * r, int * g, int * b )
void * gdDPExtractData ( struct gdIOCtx * ctx, int * size )
const char * gdExtraVersion()
int gdFontCacheSetup ( void )
void gdFontCacheShutdown ()
gdFontPtr gdFontGetGiant ( void )
gdFontPtr gdFontGetLarge ( void )
gdFontPtr gdFontGetMediumBold ( void )
gdFontPtr gdFontGetSmall ( void )
gdFontPtr gdFontGetTiny ( void )
void gdFree ( void * ptr )
void gdFreeFontCache ()
int gdFTUseFontConfig( int flag )
NO-OP, kept for library compatibility.
void gdImageAABlend ( gdImagePtr im )
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 gdImageBmp( gdImagePtr im, FILE * outFile, int compression )
void gdImageBmpCtx( gdImagePtr im, gdIOCtxPtr out, int compression )
void * gdImageBmpPtr( gdImagePtr im, int * size, int compression )
int gdImageBoundsSafe ( gdImagePtr im, int x, int y )
Set the brightness level level for the image src.
int gdImageBrightness( gdImagePtr src, int brightness )
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 )
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 )
Bring the palette colors in im2 to be closer to im1.
int gdImageColorMatch ( gdImagePtr im1, gdImagePtr im2 )
int gdImageColorReplace ( gdImagePtr im, int src, int dst )
int gdImageColorReplaceArray ( gdImagePtr im, int len, int * src, int * dst )
int gdImageColorReplaceCallback ( gdImagePtr im, gdCallbackImageColor callback )
int gdImageColorReplaceThreshold ( gdImagePtr im, int src, int dst, float threshold )
gdImageColorResolve is an alternative for the code fragment
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 )
int gdImageConvolution( gdImagePtr src, float filter[3][3], float filter_div, float offset )
void gdImageCopy ( gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h )
This function is a substitute for real alpha channel operations, so it doesn’t pay attention to the alpha channel.
void gdImageCopyMerge ( gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct )
This function is a substitute for real alpha channel operations, so it doesn’t pay attention to the alpha channel.
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 )
void gdImageCopyRotated ( gdImagePtr dst, gdImagePtr src, double dstX, double dstY, int srcX, int srcY, int srcWidth, int srcHeight, int angle )
gdImageCreate is called to create palette-based images, with no more than 256 colors.
gdImagePtr gdImageCreate ( int sx, int sy )
gdImagePtr gdImageCreateFromBmp( FILE * inFile )
gdImagePtr gdImageCreateFromBmpCtx( gdIOCtxPtr infile )
gdImagePtr gdImageCreateFromBmpPtr( int size, void * data )
Read an image file of any supported.
gdImagePtr gdImageCreateFromFile( const char * filename )
gdImageCreateFromGd is called to load images from gd format files.
gdImagePtr gdImageCreateFromGd ( FILE * inFile )
gdImageCreateFromGd2 is called to load images from gd2 format files.
gdImagePtr gdImageCreateFromGd2 ( FILE * inFile )
Reads in a GD2 image via a gdIOCtx struct.
gdImagePtr gdImageCreateFromGd2Ctx ( gdIOCtxPtr in )
gdImageCreateFromGd2Part is called to load parts of images from gd2 format files.
gdImagePtr gdImageCreateFromGd2Part ( FILE * inFile, int srcx, int srcy, int w, int h )
gdImagePtr gdImageCreateFromGd2PartCtx ( gdIOCtx * in, int srcx, int srcy, int w, int h )
gdImagePtr gdImageCreateFromGd2PartPtr ( int size, void * data, int srcx, int srcy, int w, int h )
gdImagePtr gdImageCreateFromGd2Ptr ( int size, void * data )
Reads in a GD image via a gdIOCtx struct.
gdImagePtr gdImageCreateFromGdCtx ( gdIOCtxPtr in )
gdImagePtr gdImageCreateFromGdPtr ( int size, void * data )
gdImageCreateFromGif is called to load images from GIF format files.
gdImagePtr gdImageCreateFromGif( FILE * fdFile )
See gdImageCreateFromGif.
gdImagePtr gdImageCreateFromGifCtx( gdIOCtxPtr fd )
gdImagePtr gdImageCreateFromGifPtr ( int size, void * data )
See gdImageCreateFromJpegEx.
gdImagePtr gdImageCreateFromJpeg( FILE * inFile )
See gdImageCreateFromJpeg.
gdImagePtr gdImageCreateFromJpegCtx( gdIOCtx * infile )
See gdImageCreateFromJpeg.
gdImagePtr gdImageCreateFromJpegCtxEx( gdIOCtx * infile, int ignore_warning )
gdImageCreateFromJpegEx is called to load truecolor images from JPEG format files.
gdImagePtr gdImageCreateFromJpegEx( FILE * inFile, int ignore_warning )
gdImagePtr gdImageCreateFromJpegPtr( int size, void * data )
gdImagePtr gdImageCreateFromJpegPtrEx( int size, void * data, int ignore_warning )
gdImageCreateFromPng is called to load images from PNG format files.
gdImagePtr gdImageCreateFromPng ( FILE * inFile )
See gdImageCreateFromPng.
gdImagePtr gdImageCreateFromPngCtx ( gdIOCtx * infile )
See gdImageCreateFromPng.
gdImagePtr gdImageCreateFromPngPtr ( int size, void * data )
See gdImageCreateFromPng for documentation.
gdImagePtr gdImageCreateFromPngSource ( gdSourcePtr inSource )
Creates a gdImage from a TGA file
gdImagePtr gdImageCreateFromTga( FILE * fp )
Creates a gdImage from a gdIOCtx referencing a TGA binary file.
gdImagePtr gdImageCreateFromTgaCtx( gdIOCtx * ctx )
gdImagePtr gdImageCreateFromTgaPtr( int size, void * data )
Create a gdImage from a TIFF file input from an gdIOCtx.
gdImagePtr gdImageCreateFromTiffCtx( gdIOCtx * infile )
gdImagePtr gdImageCreateFromTiffPtr( int size, void * data )
gdImageCreateFromWBMP is called to load images from WBMP format files.
gdImagePtr gdImageCreateFromWBMP( FILE * inFile )
Reads in a WBMP image via a gdIOCtx struct.
gdImagePtr gdImageCreateFromWBMPCtx( gdIOCtx * infile )
gdImagePtr gdImageCreateFromWBMPPtr( int size, void * data )
gdImageCreateFromXbm is called to load images from X bitmap format files.
gdImagePtr gdImageCreateFromXbm( FILE * fd )
gdImageCreateFromXbm is called to load images from XPM X Window System color bitmap format files.
gdImagePtr gdImageCreateFromXpm( char * filename )
gdImagePtr gdImageCreatePaletteFromTrueColor ( gdImagePtr im, int dither, int colorsWanted )
gdImageCreateTrueColor is called to create truecolor images, with an essentially unlimited number of colors.
gdImagePtr gdImageCreateTrueColor ( int sx, int sy )
gdImagePtr gdImageCrop( gdImagePtr src, const gdRect * crop )
gdImagePtr gdImageCropAuto( gdImagePtr im, const unsigned int mode )
gdImagePtr gdImageCropThreshold( gdImagePtr im, const unsigned int color, const float threshold )
void gdImageDashedLine ( gdImagePtr im, int x1, int y1, int x2, int y2, int color )
gdImageDestroy is used to free the memory associated with an image.
void gdImageDestroy ( gdImagePtr im )
int gdImageEdgeDetectQuick( gdImagePtr src )
void gdImageEllipse( gdImagePtr im, int mx, int my, int w, int h, int c )
int gdImageEmboss( gdImagePtr im )
Writes an image to a file in the format indicated by the filename.
int gdImageFile( gdImagePtr im, const char * filename )
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 gdImageFlipBoth( gdImagePtr im )
void gdImageFlipHorizontal( gdImagePtr im )
void gdImageFlipVertical( gdImagePtr im )
gdImageGaussianBlur performs a Gaussian blur of radius 1 on the image.
int gdImageGaussianBlur( gdImagePtr im )
void gdImageGd ( gdImagePtr im, FILE * outFile )
void gdImageGd2 ( gdImagePtr im, FILE * outFile, 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 )
Return the interpolation mode set in ‘im’.
gdInterpolationMethod gdImageGetInterpolationMethod( gdImagePtr im )
int gdImageGetPixel ( gdImagePtr im, int x, int y )
int gdImageGetTrueColorPixel ( gdImagePtr im, int x, int y )
gdImageGif outputs the specified image to the specified file in GIF format.
void gdImageGif( gdImagePtr im, FILE * outFile )
This function writes GIF animation frames to GIF animation, which was initialized with gdImageGifAnimBegin.
void gdImageGifAnimAdd( gdImagePtr im, FILE * outFile, int LocalCM, int LeftOfs, int TopOfs, int Delay, int Disposal, gdImagePtr previm )
Adds an animation frame via a gdIOCtxPtr.
void gdImageGifAnimAddCtx( gdImagePtr im, gdIOCtxPtr out, int LocalCM, int LeftOfs, int TopOfs, int Delay, int Disposal, gdImagePtr previm )
Like gdImageGifAnimAdd (which contains more information) except that it stores the data to write into memory and returns a pointer to it.
void * gdImageGifAnimAddPtr( gdImagePtr im, int * size, int LocalCM, int LeftOfs, int TopOfs, int Delay, int Disposal, gdImagePtr previm )
This function must be called as the first function when creating a GIF animation.
void gdImageGifAnimBegin( gdImagePtr im, FILE * outFile, int GlobalCM, int Loops )
Like gdImageGifAnimBegin except that it outputs to gdIOCtx.
void gdImageGifAnimBeginCtx( gdImagePtr im, gdIOCtxPtr out, int GlobalCM, int Loops )
Like gdImageGifAnimBegin except that it outputs to a memory buffer.
void * gdImageGifAnimBeginPtr( gdImagePtr im, int * size, int GlobalCM, int Loops )
Terminates the GIF file properly.
void gdImageGifAnimEnd( FILE * outFile )
Like gdImageGifAnimEnd, but writes its data via a gdIOCtx.
void gdImageGifAnimEndCtx( gdIOCtx * out )
Like gdImageGifAnimEnd (which contains more information) except that it stores the data to write into memory and returns a pointer to it.
void * gdImageGifAnimEndPtr( int * size )
Writes a GIF image via a gdIOCtx.
void gdImageGifCtx( gdImagePtr im, gdIOCtxPtr out )
Identical to gdImageGif except that it returns a pointer to a memory area with the GIF data.
void * gdImageGifPtr( gdImagePtr im, int * size )
Convert the image src to a grayscale image.
int gdImageGrayScale( gdImagePtr src )
void gdImageInterlace ( gdImagePtr im, int interlaceArg )
gdImageJpeg outputs the specified image to the specified file in JPEG format.
void gdImageJpeg( gdImagePtr im, FILE * outFile, int quality )
Write the image as JPEG data via a gdIOCtx.
void gdImageJpegCtx( gdImagePtr im, gdIOCtx * outfile, int quality )
Identical to gdImageJpeg except that it returns a pointer to a memory area with the JPEG data.
void * gdImageJpegPtr( gdImagePtr im, int * size, int quality )
Bresenham as presented in Foley & Van Dam.
void gdImageLine ( gdImagePtr im, int x1, int y1, int x2, int y2, int color )
int gdImageMeanRemoval( gdImagePtr im )
Invert src image.
int gdImageNegate( gdImagePtr src )
gdImagePtr gdImageNeuQuant( gdImagePtr im, const int max_color, int sample_factor )
void gdImageOpenPolygon ( gdImagePtr im, gdPointPtr p, int n, int c )
void gdImagePaletteCopy ( gdImagePtr to, gdImagePtr from )
Convert a palette image to true color.
int gdImagePaletteToTrueColor( gdImagePtr src )
int gdImagePixelate( gdImagePtr im, int block_size, const unsigned int mode )
Equivalent to calling gdImagePngEx with compression of -1.
void gdImagePng ( gdImagePtr im, FILE * outFile )
Equivalent to calling gdImagePngCtxEx with compression of -1.
void gdImagePngCtx ( gdImagePtr im, gdIOCtx * outfile )
gdImagePngEx outputs the specified image to the specified file in PNG format.
void gdImagePngEx ( gdImagePtr im, FILE * outFile, int level )
Equivalent to calling gdImagePngPtrEx with compression of -1.
void * gdImagePngPtr ( gdImagePtr im, int * size )
Identical to gdImagePngEx except that it returns a pointer to a memory area with the PNG data.
void * gdImagePngPtrEx ( gdImagePtr im, int * size, int level )
void gdImagePngToSink ( gdImagePtr im, gdSinkPtr outSink )
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 gdImageRotateInterpolated( const gdImagePtr src, const float angle, int bgcolor )
void gdImageSaveAlpha ( gdImagePtr im, int saveAlphaArg )
gdImagePtr gdImageScale( const gdImagePtr src, const unsigned int new_width, const unsigned int new_height )
int gdImageScatter( gdImagePtr im, int sub, int plus )
int gdImageScatterColor( gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors )
int gdImageScatterEx( gdImagePtr im, gdScatterPtr scatter )
int gdImageSelectiveBlur( gdImagePtr src )
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 )
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 )
Sharpen function added on 2003-11-19 by Paul Troughton (paul<dot>troughton<at>ieee<dot>org) Simple 3x3 convolution kernel Makes use of seperability Faster, but less flexible, than full-blown unsharp masking pct is sharpening percentage, and can be greater than 100 Silently does nothing to non-truecolor images Silently does nothing for pct<0, as not a useful blurring function Leaves transparency/alpha-channel untouched
void gdImageSharpen ( gdImagePtr im, int pct )
int gdImageSmooth( gdImagePtr im, float weight )
gdImagePtr gdImageSquareToCircle ( gdImagePtr im, int radius )
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 )
Render a utf8 string onto a gd image.
char * gdImageStringFT ( gdImage * im, int * brect, int fg, char * fontlist, double ptsize, double angle, int x, int y, char * string )
char * gdImageStringFTCircle ( gdImagePtr im, int cx, int cy, double radius, double textRadius, double fillPortion, char * font, double points, char * top, char * bottom, int fgcolor )
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 )
void gdImageTiff( gdImagePtr im, FILE * outFile )
Write the gd image as a tiff file.
void gdImageTiffCtx( gdImagePtr image, gdIOCtx * out )
void * gdImageTiffPtr( gdImagePtr im, int * size )
int gdImageTrueColorToPalette ( gdImagePtr im, int dither, int colorsWanted )
Selects quantization method used for subsequent gdImageTrueColorToPalette calls.
int gdImageTrueColorToPaletteSetMethod ( gdImagePtr im, int method, int speed )
Chooses quality range that subsequent call to gdImageTrueColorToPalette will aim for.
void gdImageTrueColorToPaletteSetQuality ( gdImagePtr im, int min_quality, int max_quality )
void gdImageWBMP( gdImagePtr im, int fg, FILE * outFile )
Write the image as a wbmp file
void gdImageWBMPCtx( gdImagePtr image, int fg, gdIOCtx * out )
void * gdImageWBMPPtr( gdImagePtr im, int * size, int fg )
void gdImageWebp ( gdImagePtr im, FILE * outFile )
void gdImageWebpEx ( gdImagePtr im, FILE * outFile, int quantization )
void * gdImageWebpPtr ( gdImagePtr im, int * size )
void * gdImageWebpPtrEx ( gdImagePtr im, int * size, int quantization )
void gdImageXbmCtx( gdImagePtr image, char * file_name, int fg, gdIOCtx * out )
Apply ‘multiply’ effect.
int gdLayerMultiply ( int dst, int src )
int gdLayerOverlay ( int dst, int src )
int gdMajorVersion()
int gdMinorVersion()
Return data as a dynamic pointer.
gdIOCtx * gdNewDynamicCtx( int initialSize, void * data )
gdIOCtx * gdNewDynamicCtxEx( int initialSize, void * data, int freeOKFlag )
Return data as a dynamic pointer.
gdIOCtx * gdNewFileCtx( FILE * f )
Return data as a dynamic pointer.
gdIOCtx * gdNewSSCtx( gdSourcePtr src, gdSinkPtr snk )
int gdReleaseVersion()
void gdSetErrorMethod( gdErrorMethod error_method )
Tests if a given file type is supported by GD.
int gdSupportsFileType( const char * filename, int writing )
Returns the bounding box of an affine transformation applied to a rectangular area gdRect
int gdTransformAffineBoundingBox( gdRectPtr src, const double affine[6], gdRectPtr bbox )
Applies an affine transformation to a region and copy the result in a destination to the given position.
int gdTransformAffineCopy( gdImagePtr dst, int dst_x, int dst_y, const gdImagePtr src, gdRectPtr src_region, const double affine[6] )
Applies an affine transformation to a region and return an image containing the complete transformation.
int gdTransformAffineGetImage( gdImagePtr * dst, const gdImagePtr src, gdRectPtr src_area, const double affine[6] )
const char * gdVersionString()