php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Functions | |
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) |
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>