Emscripten: Save Pixmap

About Monkey 2 Forums Monkey 2 Programming Help Emscripten: Save Pixmap

This topic contains 2 replies, has 3 voices, and was last updated by  scurty 3 months, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13669

    Raudius
    Participant

    I want to save/download a pixmap image using the emscripten target.

    pixmap.Save( filename ) works fine in the Desktop targets, but cant figure out how to trigger a download with emscripten.

     

    Thanks!

    #13670

    Mark Sibly
    Keymaster

    You can’t do this yet sorry – I need to learn how! Any advice most welcome…

    The emscripten stuff is currently very much isolated from the javascript side, it’s really just 100% pure c++ right now! In addition, I presume sending ‘file downloads’ requires being able to send http ‘headers’ too, which means you need to be running a server etc.

    #13681

    scurty
    Participant

    Well I can’t find anything on the virtual file system documentation used in Emscripten. I think it would have to be an external call to a Javascript function or an Ajax call for now, in which I’m not sure how to interface with JS from Emscripten using Monkey. xD (Externception?)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.