The 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.
@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer
Since
9
Related Modules
| Name | Description |
|---|---|
| width | Width, in pixels. |
| height | Height, in pixels. |
| format | Pixel format. For details, see OH_NativeBuffer_Format. |
| usage | Usage of the buffer. For details, see OH_NativeBuffer_Usage. |
| stride | Output parameter. Stride of the local window buffer, in bytes. |