imageNegative

Inverts the pixel values of a ColdFusion image.

imageNegative(name) → returns void

Member Function Syntax

someImage.negative()

Argument Reference for the imageNegative function

name

Required: Yes
The image on which this operation is performed.

Examples sample code invoking the imageNegative function


Using negative member function

CF 11+ Convert image to negative

imgObj = imageRead("http://sample-images.metadata-extractor.googlecode.com/git/FujiFilm%20FinePixS1Pro%20(1).jpg");
imgObj.negative();
cfimage(action="writeToBrowser", source=imgObj);

Fork me on GitHub