src/ gd.h

Summary
Container for the GD image and meta information.
Pointer to a gdImage
Defines a point in a 2D coordinate system using two integers.
Pointer to a gdPoint
Defines a point in a 2D coordinate system using floating point values.
Pointer to a gdPointF
Defines a rectilinear region.
Pointer to a gdRect

Crop

gdCropMode

GD_CROP_DEFAULTDefault crop mode (4 corners or background)
GD_CROP_TRANSPARENTCrop using the transparent color
GD_CROP_BLACKCrop black borders
GD_CROP_WHITECrop white borders
GD_CROP_SIDESCrop using colors of the 4 corners

See also

gdImageAutoCrop

Transform

gdInterpolationMethod

GD_NEAREST_NEIGHBOURNearest neighbour interpolation
GD_WEIGHTED44 pixels weighted bilinear interpolation
GD_BILINEARBilinear
GD_BICUBICBicubic
GD_BICUBIC2Improved bicubic
GD_BSPLINEBSpline
GD_BOXBox
GD_HERMITEHermite
GD_HAMMINGHamming
GD_SINCSync
GD_BLACKMANBlackman
GD_BESSELBessel
GD_GAUSSIANGaussian
GD_QUADRATICQuadratic
GD_MITCHELLMitchell
GD_CATROMCatrom
GD_HANNINGHanning GD_POWER Power

See also

gdSetInterpolationMethod

GD Types

gdImage

Container for the GD image and meta information.  It is recommended to access its member using the GD API.

gdImagePtr

Pointer to a gdImage

See also

<gdImageCreate>, <gdImageCreateTrueColor>,

filename, not FILE

Types

gdPoint

Defines a point in a 2D coordinate system using two integers.

xInteger Column position (increase from left to right)
yInteger Row position (increase from top to bottom)

gdPointPtr

Pointer to a gdPoint

See also

<gdImageCreate>, <gdImageCreateTrueColor>,

Types

gdPointF

Defines a point in a 2D coordinate system using floating point values. x - Floating point position (increase from left to right) y - Floating point Row position (increase from top to bottom)

gdPointFPtr

Pointer to a gdPointF

See also

<gdImageCreate>, <gdImageCreateTrueColor>,

Types

gdRect

Defines a rectilinear region.

xleft position
yright position
widthRectangle width
heightRectangle height

gdRectPtr

Pointer to a gdRect

See also

gdSetInterpolationMethod

Container for the GD image and meta information.
Defines a point in a 2D coordinate system using two integers.
Defines a point in a 2D coordinate system using floating point values.
Defines a rectilinear region.
BGD_DECLARE(gdImagePtr) gdImageAutoCrop(gdImagePtr im, const unsigned int mode)
Automatic croping of the src image using the given mode (see gdCropMode)
BGD_DECLARE(
   int
) gdSetInterpolationMethod(gdImagePtr im, gdInterpolationMethod method)
Defines the default interpolation gdInterpolationMethod method to be used by the various transformation functions.