GD v2

 

Process images using GD Graphics Library.

miyako/4d-plugin-gd-v2

status:=GD Filter(image;filter{;params})
Parameter
Type
Description
image
PICTURE
filter
LONGINT
params
OBJECT
status
OBJECT

Common params

Constant Type Description
resX LONGINT horizontal resolution in DPI
resY LONGINT vertical resolution in DPI
saveAlpha BOOLEAN  

Filter-specific constants are show below:

Image Filters

Constant Type Description
IMG_FILTER_NONE LONGINT 0
IMG_FILTER_NEGATE LONGINT 1 gdImageNegate
IMG_FILTER_GRAYSCALE LONGINT 2 gdImageGrayScale
IMG_FILTER_EDGEDETECT LONGINT 3 gdImageEdgeDetectQuick
IMG_FILTER_EMBOSS LONGINT 4 gdImageEmboss
IMG_FILTER_GAUSSIAN_BLUR LONGINT 5 gdImageCopyGaussianBlurred
IMG_FILTER_SELECTIVE_BLUR LONGINT 6 gdImageSelectiveBlur
IMG_FILTER_MEAN_REMOVAL LONGINT 7 gdImageMeanRemoval
IMG_FILTER_SMOOTH LONGINT 8 gdImageSmooth(weight)
IMG_FILTER_CONTRAST LONGINT 9 gdImageContrast(contrast)
IMG_FILTER_BRIGHTNESS LONGINT 10 gdImageBrightness(brightness)
IMG_FILTER_SCATTER LONGINT 11 gdImageScatter(sub;plus)
IMG_FILTER_PIXELATE LONGINT 12 gdImagePixelate(blockSize;mode)
IMG_FILTER_COLORIZE LONGINT 13 gdImageColor(red;green;blue;alpha)
IMG_FILTER_CONVOLUTION LONGINT 14 gdImageConvolution(filter;filterDiv;offset)