THPDFPage.RectangleRotate Method

 

THPDFPage.RectangleRotate

THPDFPage

 

למעלה  הקודם  הבא

Draws a rotated rectangle.

 

Delphi syntax:

procedure RectangleRotate (X, Y, Width, Height: Single; Angle: Extended);

 

C++ syntax:

void __fastcall RectangleRotate ( float X, float Y, float Width, float Height, Extended Angle );

 

תיאור

השתמש ב-Rectangle כדי לצייר מלבן. ציין את קואורדינטות וגודל המלבן. הקואורדינטות מגדירות את הפינה העליונה-שמאלית בנקודה (X, Y) ואת הרוחב והגובה

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.

 

Code Example

HPDF.CurrentPage.RotRectangle( 100, 100, 150, 75, 30 );    // Rotated rectangle
HPDF.CurrentPage.Stroke;