B4J Question [abmaterial]help:how to save the canvas as jpg file.

liulifeng77

Active Member
Licensed User
Longtime User
I'm planing to build a page for drawing online.(like Painter in windows).


I found the js code:
function convertCanvasToImage(canvas) {
var image = new Image();
image.src = canvas.toDataURL("image/png");
return image;

but abmcanvas or abmcanvasobject has not "toDataUrl" Method.

Is there any other way ?
Help is much appreciated!
 
Last edited:
Top