|
navigator.camera.getPicture(onLoadImageSuccess, onLoadImageFail, {
// destinationType : navigator.camera.DestinationType.DATA_URL,
sourceType:1,
allowEdit : true,
quality : 100,
targetWidth : 700,
targetHeight : 600,
saveToPhotoAlbum : true
});
上面设置,拍照后弹出修剪框,但修剪后的图片保存没有保存下来,还是原来的拍摄的图片。
如果destinationType : navigator.camera.DestinationType.DATA_UR,就可以,不过是得到Basr64编码,我是想要带路径的文件名。
|
|