I've a very large 2D array of floats (aprox half 40000 by 40000, each between 0.0 and 1.0) and I'd like to save them to an image in order to visualize the matrix which the array represents. I think that the most practical visualization for my purposes is a greyscale (8 bit) image where each pixel represent an entry of the 2D array using the grey value something like 255*(1-myarray[i][j])
I firstly tried with the Bitmap Class and the Setpixel function, it works for smaller array, but it won't create image of such size (it throws an InvalidParameter Exception, I suppose due to some kind overflow inside the object)
There's a way for saving directly the image to disk pixel by pixel? I'm looking for something that works like StreamWriter for text files.
If I can save directly in tiff format or something else that doesn't occupy several gigabytes of space it would be (of course) better =)
Thank you all!