I am dynamically generating an image in ASP.NET. How can I draw an arrow instead of the line in the below code snippet. I couldn't find any API for this.
Bitmap image = new Bitmap(640, 480);
Graphics graphics = Graphics.FromImage(image);
.
.
graphics.DrawLine(new Pen(Color.Red), lPoint, rPoint);
Bitmap image = new Bitmap(640, 480);
Graphics graphics = Graphics.FromImage(image);
Pen p = new Pen(Color.Red, 10);
p.EndCap = LineCap.ArrowAnchor;
graphics.DrawLine(p, lPoint, rPoint);
See LineCap Enumeration MSDN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With