下面是我代码
var cmr = plus.camera.getCamera();
var res = cmr.supportedImageResolutions[0]; //拍照或摄像使用的分辨率
var fmt = cmr.supportedImageFormats[0]; //摄像头支持的摄像文件格式
cmr.captureImage(function(path) {
plus.io.resolveLocalFileSystemURL(path,function(entry){
//压缩图片代码
});
},null,{resolution:res,format:fmt});

一隅
- 发布:2015-07-22 16:04
- 更新:2015-07-22 16:06
- 阅读:1611
1 个回复
一隅 (作者)
有人知道这个问题怎么解决吗?