gd_interpolation.c | |
Functions | |
gdImageScale | |
gdImageRotateInterpolated | |
Affine transformation | |
Transform | |
gdTransformAffineGetImage | Applies an affine transformation to a region and return an image containing the complete transformation. |
gdTransformAffineCopy | Applies an affine transformation to a region and copy the result in a destination to the given position. |
gdTransformAffineBoundingBox | Returns the bounding box of an affine transformation applied to a rectangular area <gdRect> |
gdImageSetInterpolationMethod | |
gdImageGetInterpolationMethod | Return the interpolation mode set in ‘im’. |
Transform | |
gdTransformAffineGetImage | Applies an affine transformation to a region and return an image containing the complete transformation. |
gdTransformAffineCopy | Applies an affine transformation to a region and copy the result in a destination to the given position. |
gdTransformAffineBoundingBox | Returns the bounding box of an affine transformation applied to a rectangular area <gdRect> |
gdImageSetInterpolationMethod | |
gdImageGetInterpolationMethod | Return the interpolation mode set in ‘im’. |
int gdTransformAffineGetImage( gdImagePtr * dst, const gdImagePtr src, gdRectPtr src_area, const double affine[6] )
Applies an affine transformation to a region and return an image containing the complete transformation.
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 |
GD_TRUE if the affine is rectilinear or GD_FALSE
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 copy the result in a destination to the given position.
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 |
GD_TRUE if the affine is rectilinear or GD_FALSE
int gdTransformAffineBoundingBox( gdRectPtr src, const double affine[6], gdRectPtr bbox )
Returns the bounding box of an affine transformation applied to a rectangular area <gdRect>
src | Rectangular source area for the affine transformation |
affine | the affine transformation |
bbox | the resulting bounding box |
GD_TRUE if the affine is rectilinear or GD_FALSE
gdImagePtr gdImageScale( const gdImagePtr src, const unsigned int new_width, const unsigned int new_height )
gdImagePtr gdImageRotateInterpolated( const gdImagePtr src, const float angle, int bgcolor )
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] )
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] )
Returns the bounding box of an affine transformation applied to a rectangular area gdRect
int gdTransformAffineBoundingBox( gdRectPtr src, const double affine[6], gdRectPtr bbox )
int gdImageSetInterpolationMethod( gdImagePtr im, gdInterpolationMethod id )
Return the interpolation mode set in ‘im’.
gdInterpolationMethod gdImageGetInterpolationMethod( gdImagePtr im )