I am trying to draw an edge label in a graph. The edge is not horizontal so I can't just call DrawString on the Graphics reference. Does anyone have an idea of how I can draw a string along a sloped line?
Printable View
I am trying to draw an edge label in a graph. The edge is not horizontal so I can't just call DrawString on the Graphics reference. Does anyone have an idea of how I can draw a string along a sloped line?
I've never done it myself but I'd guess that you'd create a GraphicsPath object, call its AddString method and then call Graphics.DrawPath.