image.grayscale()

Converts a image to grayscale.

image.grayscale( )

Returns: Image

This function does not take any arguments.

Examples

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

See also