开发者

Drawing Arrow between two points in ASP.NET

开发者 https://www.devze.com 2023-04-03 22:03 出处:网络
I am dynamically generating an image in ASP.NET. How can I dra开发者_运维百科w an arrow instead of the line in the below code snippet. I couldn\'t find any API for this.

I am dynamically generating an image in ASP.NET. How can I dra开发者_运维百科w 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号