[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws a Rectangle with the specified coordinates.
Source position: graphics.pp line 1159
public procedure TCanvas.Rectangle( |
X1: Integer; |
Y1: Integer; |
X2: Integer; |
Y2: Integer |
); virtual; |
const ARect: TRect |
); |
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. |
Rectangle is an overloaded method reintroduced in TCanvas. It is used to draw a rectangular shape on the drawing area for the canvas. The overloaded variants allow the coordinates to be specified as either:
Rectangle draws an outline (or borders) for the shape using the mode, style and width defined in Pen. The rectangle is also filled using the style, color and/or bitmap defined in Brush.
Use FillRect to fill a rectangular area with the current Brush without drawing its borders. Use FrameRect to draw the borders for the shape using the current Brush without filling the interior. Use Frame to draw borders for the shape using the current Pen and a clear Brush for the interior.
Rectangle calls the routine in the LCL interface used to implement the method for the current widgetset.
|
The Pen to be used for writing in this canvas. |
|
|
The Brush used to paint on the Canvas. |
|
|
Fills a rectangular area on the canvas using the current Brush settings. |
|
|
Fills an area at the specified coordinates with the current Brush for the canvas. |
|
|
Draws a frame or border around the specified rectangle using the Pen for the canvas. |
|
|
Draws a border around the specified rectangle with the Brush for the canvas. |
|
|
Draws a frame for the specified rectangle with a 3-dimensional appearance. |
|
|
Version 3.2 | Generated 2024-02-25 | Home |