tags:

views:

178

answers:

3

We're writing a .NET-based app to read images including RAW files. Is there a good library we can use? Perhaps a wrapper around dcraw or libraw? License-wise, LGPL is fine but GPL wouldn't be.

+2  A: 

There isn't yet, but there might be soon, based on the information in the question I asked here, which is more aimed at extending the support to all GDI+ applications.

Pretty much all other options I've come across involve wrapping dcraw (there's example code for a plugin for Paint.Net)

EDIT: Probably should also mention the obvious (well it is now I've found out about it); Windows Imaging Components is supported by at least Canon have a downlaodable codec for it, which will give you support in a WPF application

EDIT2: It doesn't have to be a WPF application itself, just needs v3+ of the Framework to pull in the System.Windows.Media.Imaging namespace fro BitmapFrame/etc.

Rowland Shaw
The Canon link doesn't work anymore
ChrisF
RAW codecs from Nikon (http://www.nikonimglib.com/nefcodec/), Sony (http://support.d-imaging.sony.co.jp/www/download/vista_raw/) and Olympus (http://www.olympus.co.jp/en/support/imsg/digicamera/download/software/codec/) are also available for download.
Tormod Fjeldskår
Tormod Fjeldskår
+2  A: 

I asked a similar question some time ago.

The option I ended up using was running DCRaw and capturing the output into a GDI+ Bitmap object. It works well and it isn't too slow.

Rune Grimstad
A: 

The ImageMagick library, which can read almost every image format, has a .NET wrapper which you could use.

codymanix