我想繪製一個自定義線帽 - 一個半徑爲r的等邊三角形。顯然我不能:來自.NET的CustomLineCap構造函數的NotImplementedException
Dim triangleSide As Single = CSng(3 * r/Math.Sqrt(3))
Dim triangleHeight As Single = CSng(3 * r/2)
path = New GraphicsPath()
Dim points() As PointF = New PointF() { _
New PointF(-triangleSide/2, 0), _
New PointF(triangleSide/2, 0), _
New PointF(0, triangleHeight) }
path.AddLines(points)
' Not Implemented Exception, Was is Das? '
_HlpCap = New CustomLineCap(path, Nothing)
我有什麼問題或者它只是一個框架錯誤?
編輯:
馬克CIDADE句話後,我嘗試使用(Nothing, path)
它幫助,但我需要填寫的三角形,不僅中風出來...