2
Answers

how to draw an arrow

Administrator

Administrator

22y
15k
1
i want to know how to draw arrow cause now i onli can draw line in C# can we draw arrow which function do so.thank you for your help.
Answers (2)
0
Joris Bijvoets

Joris Bijvoets

NA 6 0 15y
Although the question is rather old, the problem still can be actual, as I stumbled onto this myself lately.

Using the BeginCap and Endcap of the Brush Object can do the job. But if you want to draw a thin line of witdh 1 on an existing bitmap, the arrow can dissolve due to the resolution of your bitmap. I wrote an article how to solve this at how-to-draw-an-arrow-using-vbnet.html Translating the VB-code into C# shouldn't be a problem.
0
Administrator

Administrator

Tech Writer 2.2k 1.6m 22y
Look StartCap and EndCap members of Brush class. You can create a Brush with StartCap and EndCap properties and use that Brush to draw a line. It will draw a line with arrows or other cap styles.