PDFPAGE_Circle
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This method creates a circular curved path.

Syntax

HRESULT PDFPAGE_Circle (
DOUBLE centerX,
DOUBLE centerY,
DOUBLE radius
)
Parameters
centerX
X coordinate of the center of the circle

centerY
Y coordinate of the center of the circle

radius
Radius of the circle

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 drawn in the counterclockwise direction. The 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 clockwise direction, use the PDFPAGE_ArcTo method.

Equivalent in new interface: IPDFDocument4::DrawCircle.

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

Reference