ImageNegative()
Inverts the pixel values of an image.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageNegative( image=any );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
Examples
editimg=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
- Image manipulation
- image.negative()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)