Profile Picture

Fill a polygon shape (Smooth line series)

Posted By Lou Laskey 11 Years Ago
Author
Message
Lou Laskey
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 24, Visits: 2
Edit: I meant to say Line Series not Smooth Line.


Hi All,

I hope this topic has not been addressed previously but for some reason the Search Topic selection doesn't do anything.

Start with a simple XY NChart with an image on the back wall that provides a 1000 x 1000 area.

Using a line series I draw multiple polygons on the chart giving the user an indication of where to click to make a selection.

If they click within the boundaries of one of the polygons, I want to fill the polygon to show it has been selected.

So how do I fill the polygon?

Or is there a better series to accomplish this?


Any help would appreciated.

TIA
Lou

Win 7, MSVS 2010, .Net4, Nevron Chart 2012.




Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi,

The chart doesn't provide a built-in series that can fill arbitrary polygons. With the Line series you can stroke a polygon but you cannot fill it. The High-Low series gets close to your requirement - it fills the area enclosed between two poly-lines (that have the same X values). You can check if the regions that you have to paint can be represented by this series.

If not - the options that remain are to use either custom painting or the custom series. You can take a look at the following examples in our WinForms application:

All Examples > Custom Painting > Custom Painting Using GDI+
All Examples > Custom Painting > Painting in Overlay
All Examples > Custom Painting > Custom Series



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic