哪些库可用于操作.Net中的超大图像

时间:2022-09-23 17:01:59

I have some really large files for example 320 MB tif file with 14000 X 9000 pixels.

我有一些非常大的文件,例如320 MB tif文件,14000 X 9000像素。

The operations I need to perform are basically scaling the images to get smaller versions of it and breaking the image into tiles.

我需要执行的操作基本上是缩放图像以获得它的较小版本并将图像分解为图块。

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.

我的代码适用于小文件,我使用.Net Bitmap对象,但我偶尔会遇到更大文件的Out of Memory异常。

I've tried using the FreeImage libraries FreeImageBitmap but have the same problems.

我尝试过使用FreeImage库FreeImageBitmap但是遇到了同样的问题。

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
   );
}

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.

理想情况下,我希望第三方图书馆能够完成所有的工作,但如果您有任何提示或资源以及更多信息,我将不胜感激。

1 个解决方案

#1


AForge is meant to be very good!

AForge意味着非常好!

#1


AForge is meant to be very good!

AForge意味着非常好!