PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllCreates a circular curved path.
|
| HRESULT PDFPAGE_Circle ( DOUBLE centerX, DOUBLE centerY, DOUBLE radius ) |
Parameters
centerX
X coordinate of the circle center.
centerY
Y coordinate of the circle center.
radius
Circle radius.
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method creates a circular path centered at (centerX, centerY) with radiusĀ radius in the counter-clock-wise direction. Starting point is (centerX + radius, centerY). The current point will also be at the same location after the call. If you need a circle drawn in the clock-wise direction, please use PDFPAGE_ArcTo method.
Example
How to draw a circle
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Circle(300, 300, 200);
PDF.PDFPAGE_Fill;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_Circle(300, 300, 200); PDF->PDFPAGE_Fill(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_Circle(300, 300, 200); PDF.PDFPAGE_Fill(); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_Circle 300, 300, 200 PDF.PDFPAGE_Fill PDF.EndDoc
See Also


