THPDFPage.RectangleRotate Método

 

THPDFPage.RectangleRotate

THPDFPage

 

Arriba  Anterior  Siguiente

Draws a rotated rectangle

 

Sintaxis Delphi:

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

 

Sintaxis C++:

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

 

Descripción

Use RectangleRotate para agregar un rectángulo rotado al path actual. ( X, Y) es la esquina sobre la que gira el rectángulo, Width y Height dan su tamaño, y angle es la rotación en grados. El rectángulo es un subpath cerrado, igual que el que agrega Rectangle, de modo que al trazarlo se dibujan los cuatro lados

Para rellenar una región rectangular use Fill. Para delinear una región rectangular sin rellenarla, use Stroke. Para dibujar un rectángulo con esquinas redondeadas, use RoundRect

 

Ejemplo de código

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