11

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:

  1. I have encountered hard to debug GDI+ errors with System.Drawing in the past
  2. I have read that using System.Drawing in asp.net web applications is not 100% supported.

Thanks!

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 :)

4

4 に答える 4

4

.NET3.0に付属しているWPFImagingライブラリを調べる必要があります。それらは最適化されており、堅牢です(Aeroの実行に使用されるため、効率的であることがわかります)。これらはWPFディスパッチャーに依存せず、簡単に拡張でき、公式にサポートされています。これ以上何が欲しいですか?

于 2008-12-19T17:35:27.210 に答える
2

私は、無料またはオープンソースの完全に管理された 2D 描画ライブラリを知りません (市販のものはいくつかあるようですが、OSS が最適です)。ただし、 Cairo への Mono バインディングを調べることもできます。

Cairo は、プラットフォームに依存しない 2D 描画 API です。詳細については、カイロのホームページをご覧ください。カイロのウィキペディアのページにも良い情報があります。

Cairo はまた、オープン ソースの世界でもかなり広く使用されており、その堅牢性について私は言います。Mozilla、Webkit、Mono などはすべてこれを使用しています。皮肉なことに、Mono は実際に System.Drawing の実装をサポートするためにそれを使用しています。

Mono の System.Drawing 実装を Microsoft 実装のドロップイン置換として使用する方法もあるかもしれませんが、それがどのように機能するか、または機能するかどうかはわかりません。System.Drawing.dll 参照を Mono のバージョンに置き換えることから始めて、エラーに対処しようとするでしょう。

于 2008-09-25T23:41:34.683 に答える
1

Anecdotal evidence #1: I have used GDI+ for on-the-fly image creation within ASP.NET with no problems. I'm not sure what the problems would even be.

于 2008-08-16T20:13:46.480 に答える
0

With respect to (1), most of the hard to debug errors are due to not closing open handles (Dispose() in managed-land). I'm curious where you heard (2).

于 2008-08-16T20:05:50.910 に答える