I have a collection of objects that hold info for drawing an ellipses. They represent various range bands from a central point so there is a single point that have several rings around them. For simplicity lets just say there is a minimum range and a maximum range ring. I want to fill the area between the min. range and max range but nothing inside the min. range. How do I go about doing this? I've tried so many things today and was unable to get it to work. Here's my Paint event that does the drawing of the ellipses which come out nicely:
So basically there's a circle inside a circle and i want to fill the area between the two circles. I've tried so many combinations of regions and clipping settings and just couldn't get it to work right, was driving me crazy.Code:Private Sub MapView_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint Dim curRB As RangeBand Dim GP As New Drawing2D.GraphicsPath For Each curRB In RangeBands GP.AddEllipse(curRB.pt.x, curRB.pt.y, curRB.Radius * 2, curRB.Radius * 2) e.DrawPath(curRB.Pen, GP) Next End Sub
- Tom




Reply With Quote