how to image print in phonegap

﹥>﹥吖頭↗ 提交于 2019-12-24 01:57:07

问题


I take pictures in the first code. In the other code I want to print it. But the image does not appear on the 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);


       },

来源:https://stackoverflow.com/questions/45754679/how-to-image-print-in-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!