gdi+ - NotImplementedException from .NET's CustomLineCap constructor -


I want to draw a custom line cap - an equilateral triangle with radius r. Apparently I can not: Slow triangle side single = CNG (3 * R / 2) path as CNG (3 * r / Math.Sqrt (3))

  = New Graphics Path () slow point () point = New point () as the new point (-triangle side / 2, 0), _ new point (triangle side / 2, 0), _ new point (0, Triangle lighter)} path.AddLines (points) 'Not applicable, exception, what is a slave? '_HlpCap = New custom lines cap (path, nothing)  

Am I really confused or is it just a framework bug?

Edit:

Commented Cidade after Mark, I tried to use (nothing, path) and it helped, but I need to fill the triangle, not only to stroke it ...

Exception GDI + The library comes from its GdipCreateCustomLineCap () function from NotImplemented position. Try the stroke path instead of nothing :

  Slow path 2 like graphicspath = new graphics path (path2.AddLines); _HlpCap = New Custom Line Cap (path, path2)  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -