locked
Create .bmp file in chunks RRS feed

  • Question

  • Hi

    We need to create/save .bmp file which is huge in size through our application. We can not create such a file using any of the .net classes like BitmapSource and BmpBitmapEncoder due to size restriction. The file size can go in multples of gbs.
    Is there any way to create a .bmp file in chunks. Or are there any thirdparty libs which can help us with this.

    We also need similar capability to create .jpeg, .tiff files in chunks so that memory does not become a constraint.

    Thanks and Regards
    JC

    Monday, July 22, 2013 11:10 AM

Answers

  • Write directly to a stream.  Write the BitmapFileHeaader, the BitmapInfoHeader, the Palette and the Pixels.
    Tuesday, July 23, 2013 6:55 AM

All replies

  • Hi JC,

    can you tell me why you create/save .bmp file which is huge in size through your application. maybe we can find other ways to solve it.

    Regards,
    buernuo


    ALL FOR ONE AND ONE FOR ALL.

    Tuesday, July 23, 2013 4:58 AM
  • Write directly to a stream.  Write the BitmapFileHeaader, the BitmapInfoHeader, the Palette and the Pixels.
    Tuesday, July 23, 2013 6:55 AM