提交 25c7525c 编写于 作者: J jiangminyang

fixed some issue for js-apis-camera.md

Signed-off-by: Njiangminyang <jiangminyang@huawei.com>
上级 660ad814
...@@ -2231,6 +2231,10 @@ Captures a photo with the specified capture settings. This API uses an asynchron ...@@ -2231,6 +2231,10 @@ Captures a photo with the specified capture settings. This API uses an asynchron
**Example** **Example**
```js ```js
let settings:PhotoCaptureSetting = {
quality = 1,
rotation = 0
}
photoOutput.capture(settings, (err) => { photoOutput.capture(settings, (err) => {
if (err) { if (err) {
console.error('Failed to capture the photo ${err.message}'); console.error('Failed to capture the photo ${err.message}');
......
...@@ -2231,6 +2231,10 @@ capture(setting: PhotoCaptureSetting, callback: AsyncCallback<void\>): void ...@@ -2231,6 +2231,10 @@ capture(setting: PhotoCaptureSetting, callback: AsyncCallback<void\>): void
**示例:** **示例:**
```js ```js
let settings:PhotoCaptureSetting = {
quality = 1,
rotation = 0
}
photoOutput.capture(settings, (err) => { photoOutput.capture(settings, (err) => {
if (err) { if (err) {
console.error('Failed to capture the photo ${err.message}'); console.error('Failed to capture the photo ${err.message}');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册