987279 wrote:That same equation gives me 1235 MB.
so for that i need (18000 * 18000 * 4 )/ (1024*1024) = 1030 MB of memory approximately
, so probably it throws and OutofMemoryException normally. currently i am using 32 bit machine and i have 4 MB of RAM. so if i run this code on 64 bit machine with Xmx 2048 mb would i succeed to load the image without out of memory error ?Or a 32 bit OS (not windows) that allows access to more of the 4 gig.