Chris,
GDI will load the complete image, as it should.
My question is why isn't the file saved in smaller pieces to begin with?
That would make it easier to work with.
If you can't produce smaller files to begin with, then I would recommend
looking at the bitmap file format. There are a number of unmanaged
structures that can help you with reading this file format, and I would
recommend that you look at those.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Chris Ashley" <ch***********@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
>I am working with some very large bitmap files (1700 * 60000) and need
to split them into vertical strips. This is because GDI+ seems to load
the entire file into memory and crashes with an out of memory error.
How can I read a BMP file directly at byte level and split it into
smaller files? For example, into 1700 * 1000 strips.