...or any image really. I know the canvas plugin has an 'asJSON property --which I can save in a dictionary or something, but how do you get the image BACK from that JSON string?
I just need to save and load image files which result from canvas manipulations to and from the web storage.
Anybody done this?
Develop games in your browser. Powerful, performant & highly capable.
OK I did it. I didn't quite get that the imageurl from a canvas IS the image itself in text form. That can be saved and loaded no problem.
Anyhow That's a way to do it and the way I'm going with. Phew!
It helps to talk about it...
Right now the way it's done is to load it into a sprite and then pasting it back into the canvas.
Yep. I'm working on a "my doodle game" type game so I'm doing that all over the place. Does save game save dictionary contents too? I guess I'll find out...