I need to create a huge image (aprox 24000 x 22000) encoded with PixelFormat.Format24bppRgb. I know that it can hardly be opened ...
What I'm trying to do is:
Bitmap final = new Bitmap(width, height, PixelFormat.Format24bppRgb);
As expected, an exception occurs because I cannot easily process an 11GB file in memory.
But I had an idea: I can write a file, how do I create it? Thus, instead of working with RAM, I will work on HD.
Just to better explain: I have about 13K tiles, and I plan to stitch it together in this silly-bulky file. Since I can repeat them in the feed order, I can write it directly to memory using unsafe code.
Any suggestions?
source share