【发布时间】:2017-02-02 19:07:44
【问题描述】:
我正在 Visual Studio 2017 RC 中运行控制台应用程序。执行下面的代码时,我得到一个System.OutOfMemoryException: 'Out of memory.' 异常。
我尝试加载的图像是 32 位浮点图像。
加载 16 位浮点图像可以正常工作。
我已尝试在配置管理器中将Plattform类型设置为x64。
using System.Drawing;
namespace ConsoleAppImageTest
{
class Program
{
static void Main(string[] args)
{
string PathToFile = @"D:\img\rgb32bitF.tiff";
Image img = Image.FromFile(PathToFile);
}
}
}
【问题讨论】:
-
彩色还是黑色?
-
rgba(1, 1, 1, 1)。纯白色。我应该将文件上传到哪里以进行 stackoverflow?
标签: c# image floating-point