I am running a console application in Visual Studio 2017 RC. When executing the code below I get a System.OutOfMemoryException: 'Out of memory.'
exception.
The image im trying to load is a 32-bit float image.
Loading a 16-bit float image works fine.
I have tried setting the Plattform type to x64
in the Configuration Manager.
using System.Drawing;
namespace ConsoleAppImageTest
{
class Program
{
static void Main(string[] args)
{
string PathToFile = @"D:\img\rgb32bitF.tiff";
Image img = Image.FromFile(PathToFile);
}
}
}