HotPDF Developer Reference
Delphi and C++Builder PDF component help
|
THPDFPage.DrawPie
|
Top Previous Next |
|
Draws a pie-shaped section of the ellipse bounded by the rectangle (X1, Y1) and (X2, Y2).
Delphi syntax: procedure DrawPie( X1, Y1, X2, Y2, X3, Y3, X4, Y4: Extended );
C++ syntax: void __fastcall DrawPie( Extended X1, Extended Y1, Extended X2, Extended Y2, Extended X3, Extended Y3 , Extended X4, Extended Y4 );
Description Use DrawPie to append a pie-shaped wedge to the current page path. The wedge is defined by the ellipse bounded by the rectangle whose corners are (X1, Y1) and (X2, Y2). The arc starts and ends at the points determined by lines from the ellipse center through (X3, Y3) and (X4, Y4). Call Stroke, Fill, or FillAndStroke after DrawPie to render the path.
Code Example
|