读取RAW图像文件为GDI +位图位图、图像文件、RAW、GDI

由网友(你的小迷妹)分享简介:有读取RAW图像文件(特别是佳能的CR2和Adobe DNG文件)的GDI +位图是相当快的好办法?Is there a good way to read RAW image files (especially Canon CR2 and Adobe DNG files) as GDI+ bitmaps that i...

有读取RAW图像文件(特别是佳能的CR2和Adobe DNG文件)的GDI +位图是相当快的好办法?

Is there a good way to read RAW image files (especially Canon CR2 and Adobe DNG files) as GDI+ bitmaps that is reasonably fast?

我发现WPF下运行的一个例子,它会使用任何安装的映像codeC读取的图像,然后在Image控件中显示出来。而我修改这个例子写的WPF图像到一个MemoryStream和创建从位图建立一个GDI +位图。但这个过程是缓慢的!可怕的慢!打开一个简单的图像需要10秒左右我的电脑上。该解决方案还需要提到的WPF组件和感觉不对,尤其不能因为我想在ASP.NET项目运行code。

I found an example running under WPF that would read an image using any installed image codec and then display it in an image control. And I modified this example to create a GDI+ bitmap by writing the WPF image to a MemoryStream and creating the Bitmap from that. But this process is slow! Horribly slow! Opening a simple image takes around 10 seconds on my computer. This solution also requires references to the WPF assemblies and that doesn't feel right, especially not since I would like to run the code in an ASP.NET project.

有计划,会做的图像批量转换,但要求我将preFER动态转换的图像。

There are programs that will do batch conversions of the images, but I would prefer converting the images dynamically when requested.

那么,有什么建​​议?

So, any suggestions?

推荐答案

免责声明:我在Atalasoft工作

Disclaimer: I work at Atalasoft.

我们的 DotImage Photo Pro的产品可以做到这一点。如果你想尝试自己做,看看包装的开源dcraw的或看Paint.NET是怎么做的(我认为有一个RAW插件吧)

Our DotImage Photo Pro product can do this. If you want to try to do it yourself, look into wrapping the opensource DCRaw or look at how Paint.NET does it (I think there's a RAW plugin for it)

阅读全文

相关推荐

最新文章