• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OhosPixelMapInfos
2
3
4## Overview
5
6The **OhosPixelMapInfos** struct defines the information about a pixel map.
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| [width](#width) | Image width, in pixels.|
23| [height](#height) | Image height, in pixels.|
24| [rowSize](#rowsize) | Number of bytes per row. In the case of Direct Memory Access (DMA), the formula is as follows: Image width x Roundup(64 x Number of bytes per pixel). (The roundup means that each row is automatically padded.) In the case of other types of memory, the formula is as follows: Image width x Number of bytes per pixel.|
25| [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 per row.
62
63In the case of DMA, the formula is as follows: Image width x Roundup(64 x Number of bytes per pixel). (The roundup means that each row is automatically padded.) In the case of other types of memory, the formula is as follows: Image width x Number of bytes per pixel.
64
65
66### width
67
68```
69uint32_t OhosPixelMapInfos::width
70```
71
72**Description**
73
74Image width, in pixels.
75