1# OhosPixelMapInfos
2
3
4## Overview
5
6The **OhosPixelMapInfos** struct describes the information about a PixelMap.
7
8**System capability**: SystemCapability.Multimedia.Image
9
10**Since**: 10
11
12**Related module**: [Image](image.md)
13
14
15## Summary
16
17
18### Member Variables
19
20| Name| Description|
21| -------- | -------- |
22| uint32_t [width](#width) | Image width, in pixels. |
23| uint32_t [height](#height) | Image height, in pixels. |
24| uint32_t [rowSize](#rowsize) | Number of bytes that each row of the image occupies in the memory.|
25| int32_t [pixelFormat](#pixelformat) | Pixel format. |
26
27
28## Member Variable Description
29
30
31### height
32
33```
34uint32_t OhosPixelMapInfos::height
35```
36
37**Description**
38
39Image height, in pixels.
40
41
42### pixelFormat
43
44```
45int32_t OhosPixelMapInfos::pixelFormat
46```
47
48**Description**
49
50Pixel format.
51
52
53### rowSize
54
55```
56uint32_t OhosPixelMapInfos::rowSize
57```
58
59**Description**
60
61Number of bytes that each row of the image occupies in the memory.
62
63In the case of DMA, the formula is as follows: Image width x Number of bytes of each pixel + Number of padding bytes at the end of each row. In the case of other types of memory, the formula is as follows: Image width x Number of bytes of each pixel.
64
65
66### width
67
68```
69uint32_t OhosPixelMapInfos::width
70```
71
72**Description**
73
74Image width, in pixels.
75