ImageDrawRoundRect()
Draws a rectangle with rounded corners.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageDrawRoundRect( image=any, x=number, y=number, width=number, height=number, arcWidth=number, arcHeight=number, filled=boolean );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
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
editimg=imageNew("",200,200,"RGB","b71540");
imageDrawRoundRect(img,45,50,75,125,25,25);
cfimage(action="writeToBrowser",source=img);
See also
- Image manipulation
- image.drawRoundRect()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)