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 resets the current path and initializes a newly created path.

Syntax

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

Remarks

This method clears the current path. The current point becomes undefined.

Example

Creating a New Path

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.MoveTo(100, 100);
PDF.DrawLineTo(200, 200);
PDF.DrawLineTo(100, 200);
{ abandon existing path and create new one }
PDF.ResetPath;
PDF.DrawRectangle(50, 50, 200, 100, -10);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->MoveTo(100, 100);
PDF->DrawLineTo(200, 200);
PDF->DrawLineTo(100, 200);
// abandon existing path and create new one
PDF->ResetPath();
PDF->DrawRectangle(50, 50, 200, 100, -10);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.MoveTo(100, 100);
PDF.DrawLineTo(200, 200);
PDF.DrawLineTo(100, 200);
// abandon existing path and create new one
PDF.ResetPath();
PDF.DrawRectangle(50, 50, 200, 100, -10);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.MoveTo 100, 100
PDF.DrawLineTo 200, 200
PDF.DrawLineTo 100, 200
' abandon existing path and create new one
PDF.ResetPath
PDF.DrawRectangle 50, 50, 200, 100, -10
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