Page 1 of 1

Best way to render a Geometry on the ViewXY?

Posted: Thu Apr 20, 2017 1:57 am
by ThomasH_BR
What's the best way to render a System.Windows.Media.Geometry object to the chart? I'm currently converting to a PathGeometry and creating a Polygon out of many calls to PathGeometry.GetPointAtFractionLength(...). It works but seems pretty slow. Is there better or simpler way?

Re: Best way to render a Geometry on the ViewXY?

Posted: Thu Apr 20, 2017 12:54 pm
by ArctionPasi
Hi!

We unfortunately don't know internal implementation of Geometry or PathGeometry. There might be some helper routines to extract different paths separately and access their binary data, which you could utilize to compose a PolygonSeries or FreeFormPointLineSeries points array.

I don't know how well it suits your purpose, but I think there's a way to write Geometry in a Bitmap image. You can show that bitmap image in many LC objects, as point symbol, or as fill.