1# OH_NativeBuffer_Config
2
3
4## Overview
5
6The **OH_NativeBuffer_Config** struct describes the **OH_NativeBuffer** attribute configuration, which is used when you apply for a new **OH_NativeBuffer** instance or query the attributes of an existing instance.
7
8\@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer
9
10**Since**
11
129
13
14**Related Modules**
15
16[OH_NativeBuffer](_o_h___native_buffer.md)
17
18
19## Summary
20
21
22### Member Variables
23
24| Name| Description|
25| -------- | -------- |
26| [width](#width) | Width, in pixels.|
27| [height](#height) | Height, in pixels.|
28| [format](#format) | Pixel format. For details, see [OH_NativeBuffer_Format](_o_h___native_buffer.md#oh_nativebuffer_format-1).|
29| [usage](#usage) | Usage of the buffer. For details, see [OH_NativeBuffer_Usage](_o_h___native_buffer.md#oh_nativebuffer_usage-1).|
30| [stride](#stride) | Output parameter. Stride of the local window buffer, in bytes.|
31
32
33## Member Variable Description
34
35
36### format
37
38```
39int32_t OH_NativeBuffer_Config::format
40```
41
42**Description**
43
44Pixel map format.
45
46
47### height
48
49```
50int32_t OH_NativeBuffer_Config::height
51```
52
53**Description**
54
55Height, in pixels.
56
57
58### stride
59
60```
61int32_t OH_NativeBuffer_Config::stride
62```
63
64**Description**
65
66Output parameter. Stride of the local window buffer, in bytes.
67
68**Since**
69
7010
71
72
73### usage
74
75```
76int32_t OH_NativeBuffer_Config::usage
77```
78
79**Description**
80
81Description of the buffer usage.
82
83
84### width
85
86```
87int32_t OH_NativeBuffer_Config::width
88```
89
90**Description**
91
92Width, in pixels.
93