PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllCreates an elliptically curved path between points.
|
| HRESULT PDFPAGE_ArcTo ( DOUBLE left, DOUBLE top, DOUBLE right, DOUBLE bottom, DOUBLE firstX, DOUBLE firstY, DOUBLE secondX, DOUBLE secondY, VARIANT_BOOL isClockwise, DOUBLE* currentX, DOUBLE* currentY ) |
Parameters
Return value
Remarks
This method draws a path as a part of an ellipse that is bounded by the rectangle with left-top corner (left, top) and right-bottom corner (right, bottom). The arc is drawn following the perimeter of the ellipse, at the isClockwise direction, from the starting point to the ending point. The starting point is defined by the intersection of the ellipse and a line drawn from the center of the ellipse to the point (firstX, firstY). The ending point is defined by the intersection of the ellipse and a line drawn from the center of the ellipse to the point (secondX, secondY). The method returns the current point position in the two last parameters.
Analogue in new interface: IPDFDocument4::DrawArcTo.
Example
{ PDF object is supposed to be created }
PDF.BeginDoc;
currentX := 0;
currentY := 0;
PDF.PDFPAGE_MoveTo(100, 150);
PDF.PDFPAGE_ArcTo(100, 100, 200, 200, 150, 100, 100, 150, false, currentX, currentY);
PDF.PDFPAGE_Stroke;
PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); DOUBLE currentX = 0; DOUBLE currentY = 0; PDF->PDFPAGE_MoveTo(100, 150); PDF->PDFPAGE_ArcTo(100, 100, 200, 200, 150, 100, 100, 150, FALSE, ¤tX, ¤tY); PDF->PDFPAGE_Stroke(); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); double currentX = 0; double currentY = 0; PDF.PDFPAGE_MoveTo(100, 150); PDF.PDFPAGE_ArcTo(100, 100, 200, 200, 150, 100, 100, 150, false, out currentX, out currentY); PDF.PDFPAGE_Stroke(); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc currentX = 0 currentY = 0 PDF.PDFPAGE_MoveTo 100, 150 PDF.PDFPAGE_ArcTo 100, 100, 200, 200, 150, 100, 100, 150, False, currentX, currentY PDF.PDFPAGE_Stroke PDF.EndDoc
See Also


