提交 86c287cc 编写于 作者: H HelloCrease

update docs

Signed-off-by: NHelloCrease <lian15@huawei.com>
上级 2ba182a6
...@@ -167,6 +167,7 @@ ...@@ -167,6 +167,7 @@
- UI界面 - UI界面
- [@ohos.animator (动画)](js-apis-animator.md) - [@ohos.animator (动画)](js-apis-animator.md)
- [@ohos.arkui.drawableDescriptor(DrawableDescriptor)](js-apis-arkui-drawableDescriptor.md)
- [@ohos.curves (插值计算)](js-apis-curve.md) - [@ohos.curves (插值计算)](js-apis-curve.md)
- [@ohos.matrix4 (矩阵变换)](js-apis-matrix4.md) - [@ohos.matrix4 (矩阵变换)](js-apis-matrix4.md)
- [@ohos.mediaquery (媒体查询)](js-apis-mediaquery.md) - [@ohos.mediaquery (媒体查询)](js-apis-mediaquery.md)
......
# @ohos.arkui.drawableDescriptor (DrawableDescriptor) #@ohos.arkui.drawableDescriptor(DrawableDescriptor)
本模块提供获取pixelMap的能力,包括前景、背景、蒙版和分层图标。 本模块提供获取pixelMap的能力,包括前景、背景、蒙版和分层图标。
...@@ -53,8 +53,8 @@ getPixelMap(): image.PixelMap; ...@@ -53,8 +53,8 @@ getPixelMap(): image.PixelMap;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ---------------- | | ---------------------------------------- | -------- |
| [image.PixelMap](../apis/js-apis-image.md#pixelmap7) | PixelMap | | [image.PixelMap](../apis/js-apis-image.md#pixelmap7) | PixelMap |
**示例:** **示例:**
...@@ -71,8 +71,8 @@ getPixelMap(): image.PixelMap; ...@@ -71,8 +71,8 @@ getPixelMap(): image.PixelMap;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ---------------- | | ---------------------------------------- | -------- |
| [image.PixelMap](../apis/js-apis-image.md#pixelmap7) | PixelMap | | [image.PixelMap](../apis/js-apis-image.md#pixelmap7) | PixelMap |
**示例:** **示例:**
...@@ -89,8 +89,8 @@ getForeground(): DrawableDescriptor; ...@@ -89,8 +89,8 @@ getForeground(): DrawableDescriptor;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ---------------- | | ---------------------------------------- | -------------------- |
| [DrawableDescriptor](#drawabledescriptor) | DrawableDescriptor对象 | | [DrawableDescriptor](#drawabledescriptor) | DrawableDescriptor对象 |
**示例:** **示例:**
...@@ -107,8 +107,8 @@ getBackground(): DrawableDescriptor; ...@@ -107,8 +107,8 @@ getBackground(): DrawableDescriptor;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ---------------- | | ---------------------------------------- | -------------------- |
| [DrawableDescriptor](#drawabledescriptor) | DrawableDescriptor对象 | | [DrawableDescriptor](#drawabledescriptor) | DrawableDescriptor对象 |
**示例:** **示例:**
...@@ -125,8 +125,8 @@ getMask(): DrawableDescriptor; ...@@ -125,8 +125,8 @@ getMask(): DrawableDescriptor;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ---------------- | | ---------------------------------------- | -------------------- |
| [DrawableDescriptor](#drawabledescriptor) | DrawableDescriptor对象 | | [DrawableDescriptor](#drawabledescriptor) | DrawableDescriptor对象 |
**示例:** **示例:**
......
...@@ -89,7 +89,7 @@ Canvas提供画布组件,用于自定义绘制图形,开发者使用CanvasRe ...@@ -89,7 +89,7 @@ Canvas提供画布组件,用于自定义绘制图形,开发者使用CanvasRe
import lottie from '@ohos/lottie' import lottie from '@ohos/lottie'
``` ```
具体接口参考[Lottie](../reference/arkui-ts/ts-components-canvas-lottie.md)相关实例请参考[Lottie实例](https://gitee.com/openharmony/applications_app_samples/tree/master/code/Solutions/Game/Lottie) 具体接口参考[Lottie](../reference/arkui-ts/ts-components-canvas-lottie.md)具体实例请参考[Lottie动画](#相关实例)
>**说明:** >**说明:**
> >
...@@ -344,4 +344,8 @@ OffscreenCanvasRenderingContext2D对象和CanvasRenderingContext2D对象提供 ...@@ -344,4 +344,8 @@ OffscreenCanvasRenderingContext2D对象和CanvasRenderingContext2D对象提供
![2023032422159](figures/2023032422159.jpg) ![2023032422159](figures/2023032422159.jpg)
## 相关实例
\ No newline at end of file
使用画布绘制自定义图形,有以下相关实例可供参考:
- [Lottie动画](https://gitee.com/openharmony/applications_app_samples/tree/master/code/Solutions/Game/Lottie)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册