<camera id="camera" flash="off" device-position="front" @ready="onCameraReady" @error="onCameraError"
@stop="onCameraStop" :style='{width: `${windowWidth}px`,height: `${windowHeight}px`}'></camera>
<view class='camerabgImage'>
<view class="takePhoto" @click="takePhoto">拍照</view>
</view>
takePhoto() {
this.cameraContext.takePhoto({
quality: 'low',
success(res) {
console.log(res)
}
})
)
3 个回复
1***@qq.com (作者)
刚又测试了一下 图片没有截取了 但是旋转了90°
1***@qq.com (作者)
已解决
8***@qq.com
您好,截取问题怎么解决的呢
2024-04-30 08:58
8***@qq.com
遇到相同的问题,并且takePhoto时画面会有闪动