there comes with a issue about the CanvasSnapshot,
e.g.
first test:
-on the start of layout -- system take snapshot of canvas
-- LoacalStorage set item "snapshot" to CanvasSnapshot
//-- wait 0 second
-- check "snapshot" exists
-on " sanpshot" exists -- text set text"Snapshot exists"
-- sprite load image from LocalStorage.ItemValue
then, text shows "Snapshot exists", but sprite load nothing...
another way the same step:
-on the start of layout -- system take snapshot of canvas
-- LoacalStorage set item "snapshot" to CanvasSnapshot
//-- wait 0 second
-- check "snapshot" exists
-on " sanpshot" exists -- text set text"Snapshot exists"
-- sprite load image from CanvasSnapshot
then, text shows "Snapshot exists", and sprite load the CanvasSnapshot
so does the localstorage cannot save the CanvasSnapshot?
how can i take the CanvasSnapshot then save it or load it?
looking forward to your replies, thanks!