Hi,
How can I draw a line with an arrow head and rotate the arrow?
Andre
static void Main(string[] args)
{
PdfDocument document = new PdfDocument();
PdfPageBase page = document.Pages.Add();
DrawPath(page);
document.SaveToFile("DrawShape.pdf");
System.Diagnostics.Process.Start("DrawShape.pdf");
}
static void DrawPath(PdfPageBase page)
{
PdfPath path = new PdfPath();
path.AddLine(new PointF(40, 50), new PointF(90, 100));
path.AddLine(new PointF(40, 50), new PointF(45, 70));
PdfPen pen = new PdfPen(Color.DeepSkyBlue, 0.02f);
page.Canvas.DrawPath(pen, path);
}