ImageSetBackgroundColor()
Sets the background color for the image.
The background color is used for clearing a region.
Setting the background color only affects the subsequent ImageClearRect calls
Requires Extension: Image extension
ImageSetBackgroundColor( image=any, color=string );
Returns: void
Examples
img=imageNew("",200,200,"RGB","26de81");
imageSetBackGroundColor(img,"fed330");
imageClearRect(img,20,20,100,100);
cfimage(action="writeToBrowser",source=img);
See also
- Image manipulation
- image.setBackgroundColor()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)