Whatever message this page gives is out now! Go check it out!
ImageDrawBeveledRect(name, x, y, width, height, raised [, filled])Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
x | Required. The x coordinate of the rectangle. |
y | Required. The y coordinate of the rectangle. |
width | Required. The width of the rectangle. |
height | Required. The height of the rectangle. |
raised | Required. Specify whether the rectangle appears raised above the surface or sunk into the surface:
|
filled | Optional. Specify whether the rectangle is filled:
|
<!--- This example shows how to create a bevel-edged rectangle. --->
<!--- Use the ImageNew function to create a 200x200-pixel image. --->
<cfset myImage=ImageNew("",200,200)>
<!--- Turn on antialiasing to improve image quality. --->
<cfset ImageSetAntialiasing(myImage,"on")>
<!--- Set the drawing color for the image to light gray. --->
<cfset ImageSetDrawingColor(myImage,"lightgray")>
<!--- Draw a 3D gray, filled, raised rectangle. --->
<cfset ImageDrawBeveledRect(myImage,50,50,100,75,"yes","yes")>
<!--- Display the image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">