THPDFPage.Ellipse Method

 

THPDFPage.Ellipse

THPDFPage

 

傳回頂部  上一頁  下一頁

Draws the ellipse defined by a bounding rectangle.

 

Delphi 語法:

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

 

C++ 語法:

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

 

說明

呼叫 Ellipse 繪製 circle 或 ellipse。請以 pixel coordinates(X, Y)指定 top left point,再指定 rectangle 的 Width 與 Height 作為 bounding rectangle

 

Code Example

HPDF.CurrentPage.Ellipse( 100, 100, 75, 50 );   // Center on 100, 100, X Radius 75, Y Radius 50
HPDF.CurrentPage.Stroke;                          // Draw ellipse outline