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**: 9 11 12**Related module**: [OH_NativeBuffer](_o_h___native_buffer.md) 13 14**Header file**: [native_buffer.h](native__buffer_8h.md) 15 16## Summary 17 18 19### Member Variables 20 21| Name| Description| 22| -------- | -------- | 23| [width](#width) | Width, in pixels.| 24| [height](#height) | Height, in pixels.| 25| [format](#format) | Pixel format. For details, see [OH_NativeBuffer_Format](_o_h___native_buffer.md#oh_nativebuffer_format-1).| 26| [usage](#usage) | Usage of the buffer. For details, see [OH_NativeBuffer_Usage](_o_h___native_buffer.md#oh_nativebuffer_usage-1).| 27| [stride](#stride) | Output parameter. Stride of the local window buffer, in bytes.| 28 29 30## Member Variable Description 31 32 33### format 34 35``` 36int32_t OH_NativeBuffer_Config::format 37``` 38 39**Description** 40 41Pixel format. 42 43 44### height 45 46``` 47int32_t OH_NativeBuffer_Config::height 48``` 49 50**Description** 51 52Height, in pixels. 53 54 55### stride 56 57``` 58int32_t OH_NativeBuffer_Config::stride 59``` 60 61**Description** 62 63Output parameter. Stride of the local window buffer, in bytes. 64 65**Since** 66 6710 68 69 70### usage 71 72``` 73int32_t OH_NativeBuffer_Config::usage 74``` 75 76**Description** 77 78Description of the buffer usage. 79 80 81### width 82 83``` 84int32_t OH_NativeBuffer_Config::width 85``` 86 87**Description** 88 89Width, in pixels. 90