• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_Drawing_Image_Info
2
3
4## Overview
5
6The **OH_Drawing_Image_Info** struct describes the image information.
7
8**Since**: 12
9
10**Related module**: [Drawing](_drawing.md)
11
12**Header file**: [drawing_types.h](drawing__types_8h.md)
13
14## Summary
15
16
17### Member Variables
18
19| Name| Description|
20| -------- | -------- |
21| int32_t [width](#width) | Width, in pixels.|
22| int32_t [height](#height) | Height, in pixels.|
23| [OH_Drawing_ColorFormat](_drawing.md#oh_drawing_colorformat) [colorType](#colortype) | Color format. For details, see [OH_Drawing_ColorFormat](_drawing.md#oh_drawing_colorformat).|
24| [OH_Drawing_AlphaFormat](_drawing.md#oh_drawing_alphaformat) [alphaType](#alphatype) | Alpha format. For details, see [OH_Drawing_AlphaFormat](_drawing.md#oh_drawing_alphaformat).|
25
26
27## Member Variable Description
28
29
30### alphaType
31
32```
33OH_Drawing_AlphaFormat OH_Drawing_Image_Info::alphaType
34```
35
36**Description**
37
38Alpha format. For details, see [OH_Drawing_AlphaFormat](_drawing.md#oh_drawing_alphaformat).
39
40
41### colorType
42
43```
44OH_Drawing_ColorFormat OH_Drawing_Image_Info::colorType
45```
46
47**Description**
48
49Color format. For details, see [OH_Drawing_ColorFormat](_drawing.md#oh_drawing_colorformat).
50
51
52### height
53
54```
55int32_t OH_Drawing_Image_Info::height
56```
57
58**Description**
59
60Height, in pixels.
61
62
63### width
64
65```
66int32_t OH_Drawing_Image_Info::width
67```
68
69**Description**
70
71Width, in pixels.
72