Graphic library for .net, mono and silverlight

I have a C # application that maps 2D graphics to bitmaps using System.Drawing.Graphics. Now I want to transfer this application to work with regular .net on windows, mono on linux and in Silverlight / Moonlight.

But at least Silverlight is missing System.Drawing. Since I do not want to support multiple copies of my rendering code, I need one cross-platform graphics library.

I see several alternatives to achieve this:

  • Use the library available on all platforms.
  • Use the System.Drawing Port for Silverlight
  • Write a wrapper around the graphics libraries of different platforms

I try to avoid 3) due to the necessary work. So does anyone know a free library for 1) or 2)? The library must have a reasonable license, that is, free, and not the GPL (LGPL is in order).

+4
source share
1 answer
  • There is no shared library that does the things System.Drawing does.
  • This will be a huge challenge for a very small payback.
  • Of these options, this is the only one that is viable.

I'm not sure what kind of graphics you do, but do you think XNA? I don't know about my Mono credentials, but through Silversprite you could create material that compiles for both .NET and Silverlight.

+3
source

All Articles