未验证 提交 3ff72193 编写于 作者: O openharmony_ci 提交者: Gitee

!11836 翻译完成:11593 【轻量级 PR】js-apis-colorSpaceManager.md (只涉及代码更新)

Merge pull request !11836 from wusongqing/TR11593
...@@ -142,7 +142,7 @@ Obtains the color space type. ...@@ -142,7 +142,7 @@ Obtains the color space type.
```js ```js
try { try {
let csType = colorSpace.getColorSpaceName(); colorSpace.getColorSpaceName();
} catch (err) { } catch (err) {
console.log(`Fail to get colorSpace's name. Cause: ` + JSON.stringify(err)); console.log(`Fail to get colorSpace's name. Cause: ` + JSON.stringify(err));
} }
...@@ -166,7 +166,7 @@ Obtains the coordinates of the white point of the color space. ...@@ -166,7 +166,7 @@ Obtains the coordinates of the white point of the color space.
```js ```js
try { try {
let wp = colorSpace.getWhitePoint(); colorSpace.getWhitePoint();
} catch (err) { } catch (err) {
console.log(`Failed to get white point. Cause: ` + JSON.stringify(err)); console.log(`Failed to get white point. Cause: ` + JSON.stringify(err));
} }
...@@ -190,7 +190,7 @@ Obtains the gamma of the color space. ...@@ -190,7 +190,7 @@ Obtains the gamma of the color space.
```js ```js
try { try {
let gamma = colorSpace.getGamma(); colorSpace.getGamma();
} catch (err) { } catch (err) {
console.log(`Failed to get gamma. Cause: ` + JSON.stringify(err)); console.log(`Failed to get gamma. Cause: ` + JSON.stringify(err));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册