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 )
gdImageCreate is called to create palette-based images, with no more than 256 colors.
gdImagePtr gdImageCreate ( int sx, int sy )
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 )
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 )
gdImageCreateTrueColor is called to create truecolor images, with an essentially unlimited number of colors.
gdImagePtr gdImageCreateTrueColor ( int sx, int sy )
gdImageDestroy is used to free the memory associated with an image.
void gdImageDestroy ( gdImagePtr im )
Writes an image to a file in the format indicated by the filename.
int gdImageFile( gdImagePtr im, const char * filename )
gdImageGaussianBlur performs a Gaussian blur of radius 1 on the image.
int gdImageGaussianBlur( gdImagePtr im )
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 )
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 )
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 )
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] )