Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Graphics
Collapse All

This method creates an elliptically curved path between points.

Syntax

HRESULT DrawArcTo (
FLOAT left,
FLOAT top,
FLOAT right,
FLOAT bottom,
FLOAT firstX,
FLOAT firstY,
FLOAT secondX,
FLOAT secondY,
VARIANT_BOOL isClockwise
)
Parameters
left
X coordinate of the top-left corner of the bounding rectangle

top
Y coordinate of the top-left corner of the bounding rectangle

right
X coordinate of the bottom-right corner of the bounding rectangle

bottom
Y coordinate of the bottom-right corner of the bounding rectangle

firstX
X coordinate of the 1st point

firstY
Y coordinate of the 1st point

secondX
X coordinate of the 2nd point

secondY
Y coordinate of the 2nd point

isClockwise
Drawing direction: Clockwise, if true; counterclockwise, if false.

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method draws a path as a part of an ellipse that is bounded by the rectangle with top-left corner (left, top) and bottom-right corner (right, bottom). The arc is drawn following the perimeter of the ellipse, in 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).

Example

An ArcTo Example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.MoveTo(100, 150);
PDF.DrawArcTo(100, 100, 200, 200, 150, 100, 100, 150, false);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->MoveTo(100, 150);
PDF->DrawArcTo(100, 100, 200, 200, 150, 100, 100, 150, false);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.MoveTo(100, 150);
PDF.DrawArcTo(100, 100, 200, 200, 150, 100, 100, 150, false);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.MoveTo 100, 150
PDF.DrawArcTo 100, 100, 200, 200, 150, 100, 100, 150, False
PDF.Stroke
PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots