G
Guest
I am developing an application that possibly opens very large images - bmp,
jpeg, tiff. I have 2 questions:
Language: C#, VS .NET 2003.
1. When the program opens a BMP image, the amount of memory used seems to be
larger for BMP files than JPEGs with the same pixel dimensions. For example,
5200 x 5000 pixels image -- increase in Mem Usage is about 80MB for JPEG, but
200MB for BMP (with Task Manager). The Mem Usage is noted before and after
the following command:
Image image = new Bitmap(filename);
Is there something going on here? While this does not really matter
normally, it leads to the second question below.
2. I am getting "Out of Memory" exceptions if I open a large enough image or
a few large images. (I notice that this happens when the Mem Usage exceeds
1GB for the process when checked with Task Manager - the PC used has 2.5GB
RAM). Is there any setting that is needed to enable the application to deal
with such large images (assuming that the RAM can be increased if required)?
jpeg, tiff. I have 2 questions:
Language: C#, VS .NET 2003.
1. When the program opens a BMP image, the amount of memory used seems to be
larger for BMP files than JPEGs with the same pixel dimensions. For example,
5200 x 5000 pixels image -- increase in Mem Usage is about 80MB for JPEG, but
200MB for BMP (with Task Manager). The Mem Usage is noted before and after
the following command:
Image image = new Bitmap(filename);
Is there something going on here? While this does not really matter
normally, it leads to the second question below.
2. I am getting "Out of Memory" exceptions if I open a large enough image or
a few large images. (I notice that this happens when the Mem Usage exceeds
1GB for the process when checked with Task Manager - the PC used has 2.5GB
RAM). Is there any setting that is needed to enable the application to deal
with such large images (assuming that the RAM can be increased if required)?