2D Level Graphics in Silverlight

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?

+4
source share
2 answers

If you are writing a polygon rendering algorithm for Silverlight, it should be all managed code, I have not seen any examples of this, but if you write, let me know, I was looking for something like for XNA.

Silverlight 3 should add some of the things you need to make it a lot easier than rendering the texture and accessing the bitmap at the pixel level.

+2
source

Could you capture the image from the server and process it? You can dynamically generate an image and you will have access to what you need outside of Silverlight.

0
source

All Articles