Split BMP file at byte level?

  • Thread starter Thread starter Chris Ashley
  • Start date Start date
C

Chris Ashley

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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top