harmony 鸿蒙drawing_brush.h
drawing_brush.h
Overview
The drawing_brush.h file declares the functions related to the brush in the drawing module.
File to include: <native_drawing/drawing_brush.h>
Library: libnative_drawing.so
Since: 8
Related module: Drawing
Summary
Functions
Name | Description |
---|---|
OH_Drawing_Brush * OH_Drawing_BrushCreate (void) | Creates an OH_Drawing_Brush object. |
OH_Drawing_Brush * OH_Drawing_BrushCopy (OH_Drawing_Brush *brush) | Copies an existing OH_Drawing_Brush object to create a new one. |
void OH_Drawing_BrushDestroy (OH_Drawing_Brush *) | Destroys an OH_Drawing_Brush object and reclaims the memory occupied by the object. |
bool OH_Drawing_BrushIsAntiAlias (const OH_Drawing_Brush *) | Checks whether anti-aliasing is enabled for a brush. Anti-aliasing makes the pixels around the shape edges semi-transparent. |
void OH_Drawing_BrushSetAntiAlias (OH_Drawing_Brush *, bool) | Enables or disables anti-aliasing for a brush. Anti-aliasing makes the pixels around the shape edges semi-transparent. |
uint32_t OH_Drawing_BrushGetColor (const OH_Drawing_Brush *) | Obtains the color of a brush. The color is used by the brush to fill in a shape. |
void OH_Drawing_BrushSetColor (OH_Drawing_Brush *, uint32_t color) | Sets the color for a brush. The color is used by the brush to fill in a shape. |
uint8_t OH_Drawing_BrushGetAlpha (const OH_Drawing_Brush *) | Obtains the alpha value of a brush. This value is used by the alpha channel when the brush fills in a shape. |
void OH_Drawing_BrushSetAlpha (OH_Drawing_Brush *, uint8_t alpha) | Sets the alpha value for a brush. This value is used by the alpha channel when the brush fills in a shape. |
void OH_Drawing_BrushSetShaderEffect (OH_Drawing_Brush *, OH_Drawing_ShaderEffect *) | Sets the shader effect for a brush. |
void OH_Drawing_BrushSetShadowLayer (OH_Drawing_Brush *, OH_Drawing_ShadowLayer *) | Sets the shadow layer for a brush. The shadow layer effect takes effect only when text is drawn. |
void OH_Drawing_BrushSetFilter (OH_Drawing_Brush *, OH_Drawing_Filter *) | Sets a filter for a brush. The filter is a container that holds a mask filter and color filter. |
void OH_Drawing_BrushGetFilter (OH_Drawing_Brush *, OH_Drawing_Filter *) | Obtains the filter from a brush. The filter is a container that holds a mask filter and color filter. |
void OH_Drawing_BrushSetBlendMode (OH_Drawing_Brush *, OH_Drawing_BlendMode) | Sets a blender for a brush. The blender implements the specified blend mode. |
void OH_Drawing_BrushReset (OH_Drawing_Brush *) | Resets a brush to the initial state. All configured attributes are cleared. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦