ImageDrawBeveledRect()
Draws a rectangle with beveled edges.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageDrawBeveledRect( image=any, x=number, y=number, width=number, height=number, raised=boolean, 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. |
|
raised
boolean,
optional
|
edit
Specify whether the rectangle appears raised above the surface or sunk into the surface:
|
|
filled
boolean,
optional
|
edit
Specify whether the rectangle is filled:
|
Examples
editimg=imageRead("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4")
imageDrawBeveledRect(img,50,50,50,100,"yes");
cfimage(action="writeToBrowser", source=img);
writeOutput("<br>");
imageDrawBeveledRect(img,50,50,50,100,"yes","yes");//FIlled rect
cfimage(action="writeToBrowser", source=img);
See also
- Image manipulation
- image.drawBeveledRect()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)