[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws a border around the specified rectangle with the Brush for the canvas.
Source position: graphics.pp line 1133
public procedure TCanvas.FrameRect( |
const ARect: TRect |
); virtual; |
X1: Integer; |
Y1: Integer; |
X2: Integer; |
Y2: Integer |
); |
ARect |
|
TRect instance with the bounds for the rectangle. |
X1 |
|
Left coordinate for the Top, Left of the rectangle. |
Y1 |
|
Top coordinate for the Top, Left of the rectangle. |
X2 |
|
Right coordinate for the Bottom, Right of the rectangle. |
Y2 |
|
Bottom coordinate for the Bottom, Right of the rectangle. |
FrameRect is an overloaded method used to draw a frame or border for the specified rectangular area using the Brush for the canvas. Overloaded variants allow the bounds for the rectangle to be defined using:
Four separate Integer values representing the Top/Left and Bottom/Right coordinates for the rectangle.
A TRect instance where the vertices are represented as either four Integers, two TPoint instances for TopLeft and BottomRight, or a vector using the TArray4IntegerType.
FrameRect draws the border for the shape using the style, color, or bitmap defined in Brush. The drawing operation is always performed using a 1 pixel width / height.
FrameRect calls the routine in the LCL interface which implements the method for the widgetset. The return value from the LCL interface is ignored.
Use Frame to draw borders on a rectangle using the Pen for the canvas. Use Frame3D to draw borders using a specified bevel style or colors which simulate 3-dimensional relief.
|
The Brush used to paint on the Canvas. |
|
|
Draws a frame or border around the specified rectangle using the Pen for the canvas. |
|
|
Draws a frame for the specified rectangle with a 3-dimensional appearance. |
|
|
Draws a Rectangle with the specified coordinates. |
|
|
Draws a border around a rectangle. |
Version 3.2 | Generated 2024-02-25 | Home |