How to draw miter joined lines?
.NET (Core and Framework)
1
Posts
1
Posters
1
Views
1
Watching
-
Hello, I want to draw two lines which are mitered at the corners (see: http://www.kever.com/images/corners.jpg). As you can see both lines have different properties (like color) and can even be of different widths. Therefore I draw each line separately (using Graphics.DrawLine and not DrawLines). My idea is to create a pen with a custom end cap so that the endpoints have a 45 degrees angle. Anybody knows how to setup a CustomLineCap to achieve this? Kees