javascript - how to image print in phonegap -
i take pictures in first code. in other code want print it. image not appear on print screen. why ?
navigator.camera.getpicture(onsuccess, onerror, { quality: 100, destinationtype: camera.destinationtype.file_url, sourcetype: camera.picturesourcetype.camera, mediatype: camera.mediatype.picture, savetophotoalbum:true, //targetwidth:200 , //targetheight: 200, correctorientation: true, allowedit:true }); function onsuccess(imagedata) { image=document.getelementbyid("myimage"); image.src = imagedata; path = image.src; } printt: function () { window.plugin.printer.print(image); },
Comments
Post a Comment