ImageNegative()

Inverts the pixel values of an image.

Requires Extension: Image extension

ImageNegative( image=any );

Returns: void

Argument Description
image
any, required

The image on which this operation is performed.

Alias: name

Examples

img=imageRead("https://hostek.com/blog/wp-content/uploads/2015/11/magician_lucee_wide.jpg");
imageNegative(img);
imageresize(img, "20%","200");
cfimage(action="writeToBrowser",source=img);

See also