提交 fbbbf366 编写于 作者: L lixia7819

Merge branch 'master' of gitee.com:lixia7819/docs

...@@ -931,7 +931,7 @@ Subscribes to the watermark flag status change event. ...@@ -931,7 +931,7 @@ Subscribes to the watermark flag status change event.
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ----------------------- | ---- | ----------------------------------------------------------------------------- | | -------- | ----------------------- | ---- | ----------------------------------------------------------------------------- |
| type | string | Yes | Event type. The value is fixed at **'waterMarkFlagChange'**, indicating the watermark flag status change event. | | type | string | Yes | Event type. The value is fixed at **'waterMarkFlagChange'**, indicating the watermark flag status change event. |
| callback | Callback<boolean> | Yes | Callback used to return the watermark flag status. The value **true** means that the watermark flag status is changed to enabled, and **false** means that the watermark flag status is changed to disabled.| | callback | Callback<boolean> | Yes | Callback used to return the watermark flag status. The value **true** means that the watermark is currently enabled, and **false** means that the watermark is changed to disabled.|
**Error codes** **Error codes**
...@@ -1087,7 +1087,7 @@ Show or don't show watermark image. This API uses an asynchronous callback to re ...@@ -1087,7 +1087,7 @@ Show or don't show watermark image. This API uses an asynchronous callback to re
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | -------------- | | -------- | ------------------------- | ---- | -------------- |
| pixelMap | image.PixelMap | Yes | Watermark image.| | pixelMap | [image.PixelMap](js-apis-image.md#pixelmap7) | Yes | Watermark image.|
| enable | boolean | Yes | Whether to show watermark image. The value **true** means to show watermark image, and **false** means the opposite.| | enable | boolean | Yes | Whether to show watermark image. The value **true** means to show watermark image, and **false** means the opposite.|
| callback | AsyncCallback<void> | Yes | Callback used to return the result.| | callback | AsyncCallback<void> | Yes | Callback used to return the result.|
...@@ -1144,6 +1144,7 @@ Show or don't show watermark image. This API uses a promise to return the result ...@@ -1144,6 +1144,7 @@ Show or don't show watermark image. This API uses a promise to return the result
| Name| Type | Mandatory | Description | | Name| Type | Mandatory | Description |
| ------ | ------- | ---- | -------------------- | | ------ | ------- | ---- | -------------------- |
| pixelMap | [image.PixelMap](js-apis-image.md#pixelmap7) | Yes | Watermark image.|
| enable | boolean | Yes | Whether to show watermark image. The value **true** means to show watermark image, and **false** means the opposite.| | enable | boolean | Yes | Whether to show watermark image. The value **true** means to show watermark image, and **false** means the opposite.|
**Return value** **Return value**
......
...@@ -931,7 +931,7 @@ on(type: 'waterMarkFlagChange', callback: Callback<boolean>): void ...@@ -931,7 +931,7 @@ on(type: 'waterMarkFlagChange', callback: Callback<boolean>): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------- | ---- | ----------------------------------------------------------------------------- | | -------- | ----------------------- | ---- | ----------------------------------------------------------------------------- |
| type | string | 是 | 监听事件,固定为'waterMarkFlagChange',即水印标志状态变化事件。 | | type | string | 是 | 监听事件,固定为'waterMarkFlagChange',即水印标志状态变化事件。 |
| callback | Callback<boolean> | 是 | 回调函数。返回当前水印的启用状态。true表示水印状态变化为启用;false表示水印状态变化为禁用。 | | callback | Callback<boolean> | 是 | 回调函数。返回当前水印的启用状态。true表示当前已启用水印;false表示当前未启用水印。 |
**错误码:** **错误码:**
...@@ -1087,7 +1087,7 @@ setWaterMarkImage(pixelMap: image.PixelMap, enable: boolean, callback: AsyncCall ...@@ -1087,7 +1087,7 @@ setWaterMarkImage(pixelMap: image.PixelMap, enable: boolean, callback: AsyncCall
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------- | ---- | -------------- | | -------- | ------------------------- | ---- | -------------- |
| pixelMap | image.PixelMap | 是 | 水印图片 | | pixelMap | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 水印图片 |
| enable | boolean | 是 | 设置是否显示水印图片。true显示水印图片;false表示不显示水印图片。 | | enable | boolean | 是 | 设置是否显示水印图片。true显示水印图片;false表示不显示水印图片。 |
| callback | AsyncCallback<void> | 是 | 回调信息。 | | callback | AsyncCallback<void> | 是 | 回调信息。 |
...@@ -1144,7 +1144,7 @@ setWaterMarkImage(pixelMap: image.PixelMap, enable: boolean): Promise<void&gt ...@@ -1144,7 +1144,7 @@ setWaterMarkImage(pixelMap: image.PixelMap, enable: boolean): Promise<void&gt
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------ | --------------------------- | ---- | -------------------- | | ------ | --------------------------- | ---- | -------------------- |
| pixelMap | image.PixelMap | 是 | 水印图片 | | pixelMap | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 水印图片 |
| enable | boolean | 是 | 设置是否显示水印图片。true显示水印图片;false表示不显示水印图片。 | | enable | boolean | 是 | 设置是否显示水印图片。true显示水印图片;false表示不显示水印图片。 |
**返回值:** **返回值:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册