I have arrays of points that i'm using to create polygonal regions on panels. This works, but the polygon is narrowed slightly...
To compensate for that, i'm trying to widen the graphicspath...Code:Dim gp As New Drawing2D.GraphicsPath gp.AddPolygon(ShipPoints(arrayIndex)) Me.Region = New Region(gp)
My panels effectively disappear. All i see is an outline where a solid polygon shape should be.Code:Dim gp As New Drawing2D.GraphicsPath gp.AddPolygon(ShipPoints(arrayIndex)) gp.Widen(p1px) Me.Region = New Region(gp)
Can anyone help solve this problem?




Reply With Quote