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