|
Rectangle (X1, Y1) 및 (X2, Y2)로 둘러싸인 ellipse의 pie-shaped section을 그립니다
Delphi 구문:
procedure DrawPie( X1, Y1, X2, Y2, X3, Y3, X4, Y4: Extended );
C++ 구문:
void __fastcall DrawPie( Extended X1, Extended Y1, Extended X2, Extended Y2, Extended X3, Extended Y3 , Extended X4, Extended Y4 );
설명
DrawPie를 사용해 current page path에 pie-shaped wedge를 append합니다. Wedge는 corner가 (X1, Y1) 및 (X2, Y2)인 rectangle로 둘러싸인 ellipse로 정의됩니다. Arc는 ellipse center에서 (X3, Y3) 및 (X4, Y4)를 지나는 line이 결정하는 point에서 시작하고 끝납니다. Path를 render하려면 DrawPie 뒤에 Stroke, Fill 또는 FillAndStroke를 호출하십시오
Code Example
HPDF.CurrentPage.DrawPie( 40, 40, 180, 140, 180, 90, 110, 40 );
HPDF.CurrentPage.Stroke;
|