THPDFPage.Rectangle Method
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THPDFPage.Rectangle

THPDFPage

 

Top  Previous  Next

Draws a rectangle.

 

Delphi syntax:

procedure Rectangle ( X, Y, Width, Height: Single );

 

C++ syntax:

void __fastcall Rectangle ( float X, float Y, float Width, float Height );

 

Description

Use Rectangle to draw a rectangle. Specify the rectangle's coordinates and size. Coordinates defines the upper left corner at the point ( X, Y) and the width and the height.

To fill a rectangular region use Fill. To outline a rectangular region without filling it, use Stroke. To draw a rectangle with rounded corners, use RoundRect.

 

Example

Copyright©2007-2019 losLab.com