1 # OH_NativeBuffer_Config 2 3 4 ## 概述 5 6 OH_NativeBuffer的属性配置,用于申请新的OH_NativeBuffer实例或查询现有实例的相关属性。 7 8 \@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer 9 10 **起始版本:** 11 12 9 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) | 像素格式。 | 29 | [usage](#usage) | buffer的用途说明。 | 30 | [stride](#stride) | 本地窗口缓冲区步幅。 | 31 32 33 ## 结构体成员变量说明 34 35 36 ### format 37 38 ``` 39 int32_t OH_NativeBuffer_Config::format 40 ``` 41 42 **描述:** 43 44 像素格式 45 46 47 ### height 48 49 ``` 50 int32_t OH_NativeBuffer_Config::height 51 ``` 52 53 **描述:** 54 55 高度(像素)。 56 57 58 ### stride 59 60 ``` 61 int32_t OH_NativeBuffer_Config::stride 62 ``` 63 64 **描述:** 65 66 本地窗口缓冲区步幅。 67 68 **起始版本:** 69 70 10 71 72 73 ### usage 74 75 ``` 76 int32_t OH_NativeBuffer_Config::usage 77 ``` 78 79 **描述:** 80 81 buffer的用途说明。 82 83 84 ### width 85 86 ``` 87 int32_t OH_NativeBuffer_Config::width 88 ``` 89 90 **描述:** 91 92 宽度(像素)。 93