I would like users to be able to save an image of a graph that it created on an HTML page in a webView. I found out that since webView sits above the GL layer, it can’t simply be captured as a screenshot (from within the app).
Does anyone have any experience or think it might be possible to use something like html2canvas to create a canvas element and then do something like this?
var canvas = document.getElementById("mycanvas"); var img = canvas.toDataURL("image/png"); document.write('\<img src="'+img+'"/\>');
Would be a neat workaround to the problem, if possible.