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 9 months, 4 weeks ago.

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


    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.




    Mark Sibly

    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.



    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.