Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15122

[RESOLVED] Region troubles

$
0
0
I have arrays of points that i'm using to create polygonal regions on panels. This works, but the polygon is narrowed slightly...

Code:

Dim gp As New Drawing2D.GraphicsPath
gp.AddPolygon(ShipPoints(arrayIndex))
Me.Region = New Region(gp)

To compensate for that, i'm trying to widen the graphicspath...

Code:

Dim gp As New Drawing2D.GraphicsPath
gp.AddPolygon(ShipPoints(arrayIndex))
gp.Widen(p1px)
Me.Region = New Region(gp)

My panels effectively disappear. All i see is an outline where a solid polygon shape should be.
Can anyone help solve this problem?

Viewing all articles
Browse latest Browse all 15122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>