测试机型有 红米 note2 、魅族pro 6s, 微信版本均为6.5.19。
似乎是无论quality参数设置多少,图片都经过压缩而且颜色缺少了R值
示例代码如下:
<camera device-position=‘back’ flash=‘auto’ binderror='bindError’class=‘camera’ ></camera>
<button bindtap=‘takePhoto’>拍摄</button>
takePhoto(){
var self = this;
wx.createCameraContext().takePhoto({
quality: ‘high’,
success:({tempImagePath}) => {
self.tempImagePath = tempImagePath;
},
fail(e) {
console.log(e);
}
});
}
camera {
width: 100%;
height: 600rpx;
}