Image manipulation in asp.net/c# without System.Drawing/GDI+

后端 未结 4 2100
春和景丽
春和景丽 2021-02-08 02:50

Is there any alternative image manipulation library for .net? I would prefer something that is managed and open source.

I ask this because of two reasons:

4条回答
  •  -上瘾入骨i
    2021-02-08 03:18

    I don't know of any fully-managed 2D drawing libraries that are either free or open-source (there appears to be a few commercially available, but OSS is the way to go). However, you might look into the Mono bindings to Cairo.

    Cairo is a platform independent 2D drawing API. You can find more information about it at the Cairo homepage. The Cairo Wikipedia page also has some good info.

    Cairo is also used fairly widely in the Open Source world, which to me says something about its robustness. Mozilla, Webkit, and Mono all use it, among others. Ironically, Mono actually uses it to back their System.Drawing implementation... go figure.

    There might also be a way to use Mono's System.Drawing implementation as a drop-in replacement for the Microsoft implementation, though I'm not sure how or if that would even work. I would probably start by replacing the System.Drawing.dll reference with Mono's version, and then try to deal with any errors.

提交回复
热议问题