未验证 提交 64e4dfbd 编写于 作者: W weiyu 提交者: Gitee

【OpenHarmony开源贡献者计划2022】update zh-cn/application-dev/media/camera.md.

修改json错误
Signed-off-by: Nweiyu <1104410818@qq.com>
Signed-off-by: Nweiyu <1104410818@qq.com>
上级 23ea35ae
...@@ -347,8 +347,8 @@ await captureSession.start().then(() => { ...@@ -347,8 +347,8 @@ await captureSession.start().then(() => {
```js ```js
let settings = { let settings = {
quality: camera.QualityLevel.QUALITY_LEVEL_HIGH //设置图片质量高 quality: camera.QualityLevel.QUALITY_LEVEL_HIGH, //设置图片质量高
rotation: camera.ImageRotation.ROTATION_0, //设置图片旋转角度0 rotation: camera.ImageRotation.ROTATION_0 //设置图片旋转角度0
} }
//使用当前拍照设置进行拍照 //使用当前拍照设置进行拍照
photoOutput.capture(settings, (err) => { photoOutput.capture(settings, (err) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册