harmony 鸿蒙drawing_path_effect.h
drawing_path_effect.h
Overview
The drawing_path_effect.h file declares the functions related to the path effect in the drawing module.
File to include: <native_drawing/drawing_path_effect.h>
Library: libnative_drawing.so
Since: 12
Related module: Drawing
Summary
Types
Name | Description |
---|---|
typedef enum OH_Drawing_PathDashStyle OH_Drawing_PathDashStyle | Defines an enum for the styles of the dashed path effect. |
Enums
Name | Description |
---|---|
OH_Drawing_PathDashStyle { DRAWING_PATH_DASH_STYLE_TRANSLATE, DRAWING_PATH_DASH_STYLE_ROTATE, DRAWING_PATH_DASH_STYLE_MORPH } | Enumerates the styles of the dashed path effect. |
Functions
Name | Description |
---|---|
OH_Drawing_PathEffect * OH_Drawing_CreateComposePathEffect (OH_Drawing_PathEffect *outer, OH_Drawing_PathEffect *inner) | Creates a path effect by sequentially applying the inner effect and then the outer effect. |
OH_Drawing_PathEffect * OH_Drawing_CreateCornerPathEffect (float radius) | Creates a path effect that transforms the sharp angle between line segments into a rounded corner with the specified radius. |
OH_Drawing_PathEffect * OH_Drawing_CreateDashPathEffect (float *intervals, int count, float phase) | Creates a dashed path effect, which is determined by a group of “on” and “off” intervals. |
OH_Drawing_PathEffect * OH_Drawing_CreateDiscretePathEffect (float segLength, float deviation) | Creates a path effect that segments the path and scatters the segments in an irregular pattern along the path. |
OH_Drawing_PathEffect * OH_Drawing_CreatePathDashEffect (const OH_Drawing_Path *path, float advance, float phase, OH_Drawing_PathDashStyle type) | Creates a dashed path effect. |
OH_Drawing_PathEffect * OH_Drawing_CreateSumPathEffect (OH_Drawing_PathEffect *firstPathEffect, OH_Drawing_PathEffect *secondPathEffect) | Creates an overlay path effect based on two distinct path effects that take effect separately. |
void OH_Drawing_PathEffectDestroy (OH_Drawing_PathEffect *) | Destroys an OH_Drawing_PathEffect object and reclaims the memory occupied by the object. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦