没有System.Drawing/GDI +的asp.net/c#中的图像处理 [英] Image manipulation in asp.net/c# without System.Drawing/GDI+

查看:88
本文介绍了没有System.Drawing/GDI +的asp.net/c#中的图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.net是否有其他图像处理库?我更喜欢托管和开放源代码的东西.

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

我问这个有两个原因:

  1. 过去我很难用System.Drawing调试GDI +错误
  2. 我已阅读到不100%支持在asp.net Web应用程序中使用System.Drawing.

谢谢!

澄清一下,我知道System.Drawing可以在asp.net Web应用程序上工作-我过去曾经使用过它.我真的只是想知道是否有用于.net的托管图像处理库:)

edit: clarification, I know that System.Drawing can work asp.net web apps - I have used it in the past. I really just wonder if there are any managed image manipulation libraries for .net :)

推荐答案

我不知道任何完全托管的2D图形库都是免费的或开源的(似乎有一些商业上可用的,但是OSS是必经之路).但是,您可能会研究与开罗的Mono绑定.

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是与平台无关的2D绘图API.您可以在开罗主页中找到有关此信息的更多信息.开罗Wikipedia页面也有一些不错的信息.

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.

开罗在开放源代码世界中也得到了广泛的使用,在我看来,它具有强大的功能.Mozilla,Webkit和Mono都使用它,等等.具有讽刺意味的是,Mono实际上使用它来支持他们的System.Drawing实现...去吧.

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.

也许还有一种方法可以使用Mono的System.Drawing实现作为Microsoft实现的直接替代品,尽管我不确定这样做如何或是否可行.我可能首先用Mono的版本替换System.Drawing.dll引用,然后尝试处理任何错误.

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.

这篇关于没有System.Drawing/GDI +的asp.net/c#中的图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆