image.drawRoundRect()
Draws a rectangle with rounded corners.
image.drawRoundRect( x=number, y=number, width=number, height=number, arcWidth=number, arcHeight=number, filled=boolean )
Returns: Image
| Argument | Description |
|---|---|
|
x
number,
required
|
edit
The x coordinate of the rectangle. |
|
y
number,
required
|
edit
The y coordinate of the rectangle. |
|
width
number,
required
|
edit
The width of the rectangle. |
|
height
number,
required
|
edit
The height of the rectangle. |
|
arcWidth
number,
required
|
edit
The horizontal diameter of the arc at the four corners. |
|
arcHeight
number,
required
|
edit
The vertical diameter of the arc at the four corners. |
|
filled
boolean,
optional
|
edit
Specify whether the rectangle is filled:
|
Examples
edit img=imageNew("",200,200,"RGB","b71540");
img.DrawRoundRect(55,45,75,65,75,25);
cfimage(action="writeToBrowser",source=img);