Vcl.Direct2D.TDirect2DCanvas.DrawRectangle
Delphi
procedure DrawRectangle(const Rect: TD2D1RectF);
C++
void __fastcall DrawRectangle(const D2D_RECT_F &Rect);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | TDirect2DCanvas |
Description
Draws a rectangle on the canvas.
Use DrawRectangle to draw a rectangle using Pen.
The Rect parameter is an interface to a Direct2D object specifying the properties of the rectangle.
To fill a rectangular region without drawing the boundary in the current pen, use FillRect. To outline a rectangular region without filling it, use FrameRect or Polygon. To draw a rectangle with rounded corners, use RoundRect.