Lucee Function Reference

imageclearrect()

Clears the specified rectangle by filling it with the background color of the current drawing surface.

Example

imageclearrect(object image,number x,number y,number width,number height):void

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
image object  Yes The image on which this operation is performed.  
x number  Yes The X coordinate of the rectangle to clear.  
y number  Yes The Y coordinate of the rectangle to clear.  
width number  Yes The width of the rectangle to clear.  
height number  Yes The height of the rectangle to clear.