哪些库可用于操纵超大图像的.Net [英] What libraries are available for manipulating super large images in .Net
问题描述
我有一些非常大的文件,例如320 MB TIF文件14000×9000像素。
I have some really large files for example 320 MB tif file with 14000 X 9000 pixels.
我需要执行的基本缩放图像,以获得更小的版本,并打破了图像分为瓷砖的操作。
The operations I need to perform are basically scaling the images to get smaller versions of it and breaking the image into tiles.
我的code正常工作与小文件和我使用.NET 位图
的对象,但我会偶尔会内存不足异常较大的文件。
My code works fine with small files and I use the .Net Bitmap
objects but I will occasionally get Out of Memory exceptions for larger files.
我已经使用FreeImage的库试图 FreeImageBitmap
,但有同样的问题。
I've tried using the FreeImage libraries FreeImageBitmap
but have the same problems.
我使用的是类似以下内容缩放图像:
I'm using something like the following to scale the image:
using (Graphics g = Graphics.FromImage((Image)result))
{
g.DrawImage(
source,
xOffset, yOffset,
source.Width * scale, source.Height * scale
);
}
在理想情况下,我想一个第三方库来完成所有的刻苦努力,但如果你有更多信息任何提示或资源,我想AP preciate吧。
Ideally I'd like a third party library to do all the hardwork, but if you have any tips or resources with more information I would appreciate it.
推荐答案
AForge 的意思是很不错的!
这篇关于哪些库可用于操纵超大图像的.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!