THPDFPage.RectangleRotate Method

 

THPDFPage.RectangleRotate

THPDFPage

 

Topo  Anterior  Próxima

Desenha um retângulo rotacionado.

 

Sintaxe Delphi:

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

 

Sintaxe C++:

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

 

Descrição

Use RectangleRotate para adicionar um retângulo rotacionado ao path atual. ( X, Y) é o canto em torno do qual o retângulo gira, Width e Height dão o tamanho dele, e angle é a rotação em graus. O retângulo é um subpath fechado, exatamente como um adicionado por Rectangle, de modo que traçá-lo desenha os quatro lados

Para preencher uma região retangular use Fill. Para contornar uma região retangular sem preenchê-la, use Stroke. Para desenhar um retângulo com cantos arredondados, use RoundRect.

 

Exemplo de código

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