From 8cfe821840e58e08d12001b1df09e6c9c2a5dcf5 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Wed, 21 Jul 2004 08:00:06 +0000 Subject: [PATCH] - Document imagefilter() and add examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163852 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/imagefilter.xml | 150 +++++++++++++++++++++- 1 file changed, 146 insertions(+), 4 deletions(-) diff --git a/reference/image/functions/imagefilter.xml b/reference/image/functions/imagefilter.xml index dfc7f71858..0a949d3a83 100644 --- a/reference/image/functions/imagefilter.xml +++ b/reference/image/functions/imagefilter.xml @@ -1,10 +1,10 @@ - + imagefilter - Applies Filter an image using a custom angle + Applies a filter to an image @@ -15,9 +15,151 @@ intfiltertype intargs + + imagefilter applies the filter + filtertype to the image, using + args where necessary. + + + filtertype can be one of the following: + + + + IMG_FILTER_NEGATE: Reverses all colors of + the image. + + + + + IMG_FILTER_GRAYSCALE: Converts the image into + grayscale. + + + + + IMG_FILTER_BRIGHTNESS: Changes the brightness + of the image. Use args to set the level of + brightness. + + + + + IMG_FILTER_CONTRAST: Changes the contrast of + the image. Use args to set the level of + contrast. + + + + + IMG_FILTER_COLORIZE: Like + IMG_FILTER_GRAYSCALE, except you can specify the + color. Use 3 separate args, in the form of + red, blue, + green. The range for each color is 0 to 255. + + + + + IMG_FILTER_EDGEDETECT: Uses edge detection to + highlight the edges in the image. + + + + + IMG_FILTER_EMBOSS: Embosses the image. + + + + + IMG_FILTER_GAUSSIAN_BLUR: Blurs the image using + the Gaussian method. + + + + + IMG_FILTER_SELECTIVE_BLUR: Blurs the image. + + + + + IMG_FILTER_MEAN_REMOVAL: Uses mean removal to + achieve a "sketchy" effect. + + + + + IMG_FILTER_SMOOTH: Makes the image smoother. + Use args to set the level of smoothness. + + + + + ¬e.bundled.gd; + + &return.success; + + + + <function>imagefilter</function> grayscale example + + +]]> + + + + + + <function>imagefilter</function> brightness example + + +]]> + + + + + + <function>imagefilter</function> colorize example + + +]]> + + +