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
ImageXORDrawingMode( image=any, color=string );
Returns: void
Examples
Function 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
- Search Lucee Test Cases (good for further, detailed examples)