Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
saved image in html5? - Gideros Forum

saved image in html5?

MoKaLuxMoKaLux Member
edited September 2019 in Game & application design
how are you?
I have a question for you please.
I have this code:
local myrt = RenderTarget.new(self.myrealsprite:getWidth(), self.myrealsprite:getHeight())
myrt:draw(self.myrealsprite)
myrt:save("|T|mytile.png")
print("saved?")
In HTML5, the png image is indeed saved somewhere on my computer but where? (this was the question)
Edit: it is saved into RAM not file because of |T| (thanks hgy29).

Can we ask the user where to save the image in html5? (this is the new question :( )

Media plugin works fine on android and windows for this task but it doesn't support html5 :'(

My prototype: https://mokalux.itch.io/onetiletotileset?secret=8Xi3Bi3W68YdlczWEJZQ8R15Zw
my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories

Comments

Sign In or Register to comment.