HRESULT PDFPAGE_Arc2 ( DOUBLE centerX, DOUBLE centerY, DOUBLE radiusX, DOUBLE radiusY, DOUBLE degreeStartAngle, DOUBLE degreeSweepAngle, DOUBLE* currentX, DOUBLE* currentY ) |
This method draws a path as a part of an ellipse whose center is a point (centerX, centerY) and radius defined by the pair (radiusX, radiusY). The arc is drawn following the perimeter of the ellipse, counterclockwise, from the starting point to the sweeping angle degreeSweepAngle. The starting point is defined by the intersection of the ellipse and a line drawn by the angle degreeStartAngle. Both angles are measured in degrees. This method returns the current point position specified by the last two parameters.
Equivalent in new interface: IPDFDocument4::DrawAngleArc.
{ PDF object is supposed to be created } PDF.BeginDoc; currentX := 0; currentY := 0; PDF.PDFPAGE_MoveTo(300, 300); PDF.PDFPAGE_Arc2(300, 300, 200, 200, 45, 90, currentX, currentY); PDF.PDFPAGE_LineTo(300, 300); PDF.PDFPAGE_Stroke; PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); DOUBLE currentX = 0; DOUBLE currentY = 0; PDF->PDFPAGE_MoveTo(300, 300); PDF->PDFPAGE_Arc2(300, 300, 200, 200, 45, 90, ¤tX, ¤tY); PDF->PDFPAGE_LineTo(300, 300); PDF->PDFPAGE_Stroke(); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); double currentX = 0; double currentY = 0; PDF.PDFPAGE_MoveTo(300, 300); PDF.PDFPAGE_Arc2(300, 300, 200, 200, 45, 90, out currentX, out currentY); PDF.PDFPAGE_LineTo(300, 300); PDF.PDFPAGE_Stroke(); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc currentX = 0 currentY = 0 PDF.PDFPAGE_MoveTo 300, 300 PDF.PDFPAGE_Arc2 300, 300, 200, 200, 45, 90, currentX, currentY PDF.PDFPAGE_LineTo 300, 300 PDF.PDFPAGE_Stroke PDF.EndDoc