Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

create empty multipage in memory

Help
Slobodan
2013-04-22
2013-07-12
  • Slobodan
    Slobodan
    2013-04-22

    I would like to create empty multipage in memory, add pages to it, and save to stream. I could not find a way to create empty multipage without using OpenMultibitmap, and I don't like to use it because it will try to save file on disk when I close multipage. I'd like to prevent any communication with disk, but multipage API seems to lack functions for it. I could change the FreeImage library code to set MULTIBITMAPHEADER.changed to false before closing it, but I would rather not change the library code. Is there a technique I'm not aware of? Thanks!

     
  • Hervé Drolon
    Hervé Drolon
    2013-07-12

    Hi,

    I've never tried this but maybe you could use FreeImage_LoadMultiBitmapFromMemory using an empty FIMEMORY *stream as argument ?

    Hervé