OH_NativeBuffer_Config

Overview

The OH_NativeBuffer_Config struct defines 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

OH_NativeBuffer

Summary

Member Variables

Name Description
width Width, in pixels.
height Height, in pixels.
format Pixel map format.
usage Description of the buffer usage.
stride Stride of the local window buffer.

Member Variable Description

format

int32_t OH_NativeBuffer_Config::format

Description

Pixel map format.

height

int32_t OH_NativeBuffer_Config::height

Description

Height, in pixels.

stride

int32_t OH_NativeBuffer_Config::stride

Description

Stride of the local window buffer.

Since

10

usage

int32_t OH_NativeBuffer_Config::usage

Description

Description of the buffer usage.

width

int32_t OH_NativeBuffer_Config::width

Description

Width, in pixels.