PHP. Руководство по PHP. 2005
imagefilter
imagefilter
Description
bool imagefilter (resource src_im, int filtertype [, int arg1 [, int arg2 [, int arg3]]])imagefilter() applies the filter filtertype to the image, using arg1, arg2 and arg3 where necessary.
filtertype can be one of the following:
IMG_FILTER_NEGATE: Reverses all colors of the image.
Замечание: Эта функция доступна только в том
случае, если PHP был скомпилирован со встроенной библиотекой GD.