I have a C# application which renders 2D graphics into bitmaps using System.Drawing.Graphics. I now want to port this application to work on normal .net on windows, mono on linux and in Silverlight/Moonlight.
But at least Silverlight is lacking System.Drawing. Since I don't want to maintain several copies of my rendering code I need one cross platform graphics library.
I see a few alternatives to achieve that:
- Use a library available on all platforms
- Use a port of System.Drawing to silverlight
- Write a wrapper around the graphics libraries of the different platforms myself
I'm trying to avoid 3) due to the required work. So does anybody know a free library for 1) or 2)? Library should have a reasonable license, i.e. free and not GPL (LGPL is fine).