harmony 鸿蒙drawing_types.h
drawing_types.h
Overview
Declares the data types for drawing 2D graphics, including the canvas, brush, pen, bitmap, and path.
Since: 8
Related Modules:
Summary
Types
Name | Description |
---|---|
OH_Drawing_Canvas | Defines a rectangular canvas on which various shapes, images, and texts can be drawn by using the brush and pen. |
OH_Drawing_Pen | Defines a pen, which is used to describe the style and color to outline a shape. |
OH_Drawing_Brush | Defines as a brush, which is used to describe the style and color to fill in a shape. |
OH_Drawing_Path | Defines a path, which is used to customize various shapes. |
OH_Drawing_Bitmap | Defines a bitmap, which is a memory that contains the pixel data of a shape. |
Enums
Name | Description |
---|---|
OH_Drawing_ColorFormat { COLOR_FORMAT_UNKNOWN, COLOR_FORMAT_ALPHA_8, COLOR_FORMAT_RGB_565, COLOR_FORMAT_ARGB_4444, COLOR_FORMAT_RGBA_8888, COLOR_FORMAT_BGRA_8888 } |
Enumerates storage formats of bitmap pixels. |
OH_Drawing_AlphaFormat { ALPHA_FORMAT_UNKNOWN, ALPHA_FORMAT_OPAQUE, ALPHA_FORMAT_PREMUL, ALPHA_FORMAT_UNPREMUL } | Enumerates alpha formats of bitmap pixels. |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦