THPDFPage.RectangleRotate Method

 

THPDFPage.RectangleRotate

THPDFPage

 

Viršus  Ankstesnis  Kitas

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 );

 

Aprašas

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

Norėdami užpildyti stačiakampę sritį, naudokite Fill. Norėdami apibrėžti stačiakampę sritį jos neužpildydami, naudokite Stroke. Norėdami nubrėžti stačiakampį užapvalintais kampais, naudokite RoundRect

 

Code Example

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