0

I am using Intel XDK and making a game which can change layer into a single DIV. after user choose proper layer, I had function which use drawImage to merge into single image.

$('#design-container').children('img').each(function(){
     c=document.getElementById("myCanvas");
    var ctx=c.getContext("2d");
    var img=document.getElementById($(this).attr('id'));
    ctx.drawImage(img, 0, 0);

});

Now it is display correctly on my app, but what I can do if I want to save this image into camera roll ?

Now I purely use app_framework and jQuery only. should I include phonegapp to work?

4

1 回答 1

0

在英特尔 XDK 中,您可以使用intel.xdk 相机对象。此外,Cordova 文件对象可能很有价值。

于 2014-04-04T01:56:03.597 回答