Hi, is there a way that we can save a specific surface with this rather than just the screen in html5 please? :) Thank you
Hi, Thank you so much for answering, sorry I wasn't clear that I was using Gamemaker... I see that I can go up to the buffer_get_address in gamemaker, but can't see ImageData or putimagedata... so I'd have to make an extension from there in JS for it to work? :)
If you want to save the surface "somewhere" but not necessarily in a user-accessible location, you could use buffer_get_surface and then buffer_base64_encode to convert it to a string you could save (or, perhaps, buffer_save will also work).
Thanks for your reply. I tried some way, maybe the problem is at my end, but could not get it work.
Surface_save works well on windows.exe (but not with html5), however buffer_get_surface+buffer_save or buffer_get_surface+buffer_base64_encode+file_text_write_string did not work at all.
Anyway, thank you.