Lucee Object Methods Reference
Object Method Image.clearRect
Clears the specified rectangle by filling it with the background color of the current drawing surface.
Image.clearRect(number x,number y,number width,number height):void
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
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. |