I am trying to port a WebForms application to Silverlight, this application uses the GDI Graphics class to draw polygons into a bitmap in memory, after which it will compare pixel pixels, so I need access to the pixel buffer.
Example:
Graphics g = Graphics.FromImage (bmp);
g.FillClosedCurve (brush, points, FillMode.Winding);
I did a serious Google search, trying to figure out how to draw polygons, and then have access to the pixel buffer of the surface of the canvas. My data shows that this is not possible with Silverlight WPF graphics, so I need to use a special graphics library, but only found some 3D libraries. Is there a simple 2D library for Silverlight, or should I just head and write a polygon rendering algorithm?
source share