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

!11279 完善effectKit.md 相关资料

Merge pull request !11279 from 熊大伟/effectKit_1107
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
该模块提供以下图像效果相关的常用功能: 该模块提供以下图像效果相关的常用功能:
- [Filter](#filter):效果链,指各种图像处理效果的集合链表 - [Filter](#filter):效果类,用于添加指定效果到图像源
- [Color](#color):颜色类,用于保存取色的结果。 - [Color](#color):颜色类,用于保存取色的结果。
- [ColorPicker](#colorpicker):智能取色器。 - [ColorPicker](#colorpicker):智能取色器。
...@@ -181,6 +181,7 @@ getMainColorSync(): Color ...@@ -181,6 +181,7 @@ getMainColorSync(): Color
let color = colorPicker.getMainColorSync(); let color = colorPicker.getMainColorSync();
console.log('get main color =' + color); console.log('get main color =' + color);
``` ```
![zh-ch_image_Main_Color.png](figures/zh-ch_image_Main_Color.png)
## Filter ## Filter
...@@ -204,7 +205,7 @@ blur(radius: number): Filter ...@@ -204,7 +205,7 @@ blur(radius: number): Filter
| 类型 | 说明 | | 类型 | 说明 |
| :------------- | :---------------------------------------------- | | :------------- | :---------------------------------------------- |
| [Filter](#filter) | 返回效果链表头。 | | [Filter](#filter) | 返回已添加的图像效果。 |
**示例:** **示例:**
...@@ -221,6 +222,7 @@ image.createPixelMap(color, opts).then((pixelMap) => { ...@@ -221,6 +222,7 @@ image.createPixelMap(color, opts).then((pixelMap) => {
} }
}) })
``` ```
![zh-ch_image_Add_Blur.png](figures/zh-ch_image_Add_Blur.png)
### brightness ### brightness
...@@ -240,7 +242,7 @@ brightness(bright: number): Filter ...@@ -240,7 +242,7 @@ brightness(bright: number): Filter
| 类型 | 说明 | | 类型 | 说明 |
| :------------- | :---------------------------------------------- | | :------------- | :---------------------------------------------- |
| [Filter](#filter) | 返回效果链表头。 | | [Filter](#filter) | 返回已添加的图像效果。 |
**示例:** **示例:**
...@@ -257,6 +259,7 @@ image.createPixelMap(color, opts).then((pixelMap) => { ...@@ -257,6 +259,7 @@ image.createPixelMap(color, opts).then((pixelMap) => {
} }
}) })
``` ```
![zh-ch_image_Add_Brightness.png](figures/zh-ch_image_Add_Brightness.png)
### grayscale ### grayscale
...@@ -270,7 +273,7 @@ grayscale(): Filter ...@@ -270,7 +273,7 @@ grayscale(): Filter
| 类型 | 说明 | | 类型 | 说明 |
| :------------- | :---------------------------------------------- | | :------------- | :---------------------------------------------- |
| [Filter](#filter) | 返回效果链表头。 | | [Filter](#filter) | 返回已添加的图像效果。 |
**示例:** **示例:**
...@@ -286,10 +289,11 @@ image.createPixelMap(color, opts).then((pixelMap) => { ...@@ -286,10 +289,11 @@ image.createPixelMap(color, opts).then((pixelMap) => {
} }
}) })
``` ```
![zh-ch_image_Add_Grayscale.png](figures/zh-ch_image_Add_Grayscale.png)
### getPixelMap ### getPixelMap
getPixelMap(): image.PixelMap getPixelMap(): [image.PixelMap](js-apis-image.md#pixelmap7)
获取已添加链表效果的源图像的image.PixelMap。 获取已添加链表效果的源图像的image.PixelMap。
...@@ -299,7 +303,7 @@ getPixelMap(): image.PixelMap ...@@ -299,7 +303,7 @@ getPixelMap(): image.PixelMap
| 类型 | 说明 | | 类型 | 说明 |
| :------------- | :---------------------------------------------- | | :------------- | :---------------------------------------------- |
| [image.PixelMap](js-apis-image.md#pixelmap7) | 已添加链表效果的源图像的image.PixelMap。 | | [image.PixelMap](js-apis-image.md#pixelmap7) | 已添加效果的源图像的image.PixelMap。 |
**示例:** **示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册