Hi,
Use a graphics path to create the region
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim pth As New Drawing2D.GraphicsPath
Dim rgn As Region
pth.AddPie(Me.ClientRectangle, 45, 270)
rgn = New Region(pth)
e.Graphics.FillRegion(Brushes.Red, rgn)
End Sub
Ken
---------------
"Carl Gilbert" <mr*************@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi
I am drawing a pie like shape on a windows form in VB.NET using the
FillPie method as follows in the form Paint event:
e.Graphics.FillPie(brush, Me.ClientRectangle, pro.Angle, pro.Span)
How can I get back a System.Drawing.Region from the recently added pie?
Regards, Carl Gilbert