HRESULT ResetPath () |
{ 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);
// 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);
// 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);
' 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