ImageXORDrawingMode()
Sets the paint mode of the image to alternate between the image's current color and the new specified color.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageXORDrawingMode( image=any, color=string );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
color
string,
required
|
edit
the color (The default value is "black"):
Alias: colour |
Examples
editFunction Example
imgObj = imageNew("",152,152,"rgb","149c82");
imageXORDrawingMode(imgObj,"dddddd");
imagesetDrawingColor(imgObj,"white");
imagedrawRect(imgObj,50,50,50,50,"yes");
for (i=1;i LTE 100;i=i+1) {
x = randRange(0,152);
y = randRange(0,152);
imagedrawPoint(imgObj,x,y);
}
cfimage(action="writeToBrowser", source=imgObj);
See also
- Image manipulation
- image.XORDrawingMode()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)