openharmony 鸿蒙 capi-oh-nativebuffer-oh-nativebuffer-config

2026-08-25 浏览 (1)

OH_NativeBuffer_Config

typedef struct {...} OH_NativeBuffer_Config

Overview

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.

Since: 9

Related module: OH_NativeBuffer

Header file: native_buffer.h

Summary

Member Variables

NameDescription
int32_t widthWidth, in pixels.
int32_t heightHeight, in pixels.
int32_t formatPixel format. For details about the available options, see OH_NativeBuffer_Format.
int32_t usageUsage of the buffer. For details about the available options, see OH_NativeBuffer_Usage.
int32_t strideDouble pointer to the image processing instance created. Stride of the local window buffer, in bytes.
Since: 10

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-drawing-gpu-context-h

openharmony 鸿蒙 capi-drawing-nativepixelmap-

openharmony 鸿蒙 capi-nativevsync-oh-nativevsync-expectedraterange

openharmony 鸿蒙 capi-drawing-oh-drawing-brush

openharmony 鸿蒙 capi-drawing-oh-drawing-image-info

openharmony 鸿蒙 capi-drawing-text-linetypography-h

openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage

openharmony 鸿蒙 capi-drawing-typeface-h

openharmony 鸿蒙 capi-drawing-brush-h

openharmony 鸿蒙 capi-nativewindow

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/JsFb9tNv