1# OH_NativeBuffer_Config
2
3
4## 概述
5
6OH_NativeBuffer的属性配置,用于申请新的OH_NativeBuffer实例或查询现有实例的相关属性。
7
8\@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer
9
10**起始版本:**
11
129
13
14**相关模块:**
15
16[OH_NativeBuffer](_o_h___native_buffer.md)
17
18
19## 汇总
20
21
22### 成员变量
23
24| 名称 | 描述 |
25| -------- | -------- |
26| [width](#width) | 宽度(像素)。 |
27| [height](#height) | 高度(像素)。 |
28| [format](#format) | 像素格式,具体可参见[OH_NativeBuffer_Format](_o_h___native_buffer.md#oh_nativebuffer_format-1)枚举。 |
29| [usage](#usage) | buffer的用途说明,具体可参见[OH_NativeBuffer_Usage](_o_h___native_buffer.md#oh_nativebuffer_usage-1)枚举。 |
30| [stride](#stride) | 输出参数。本地窗口缓冲区步幅,单位为Byte。 |
31
32
33## 结构体成员变量说明
34
35
36### format
37
38```
39int32_t OH_NativeBuffer_Config::format
40```
41
42**描述:**
43
44像素格式
45
46
47### height
48
49```
50int32_t OH_NativeBuffer_Config::height
51```
52
53**描述:**
54
55高度(像素)。
56
57
58### stride
59
60```
61int32_t OH_NativeBuffer_Config::stride
62```
63
64**描述:**
65
66输出参数。本地窗口缓冲区步幅,单位为Byte。
67
68**起始版本:**
69
7010
71
72
73### usage
74
75```
76int32_t OH_NativeBuffer_Config::usage
77```
78
79**描述:**
80
81buffer的用途说明。
82
83
84### width
85
86```
87int32_t OH_NativeBuffer_Config::width
88```
89
90**描述:**
91
92宽度(像素)。
93