openharmony 鸿蒙 capi-image-nativemodule-oh-imagenative

2026-08-25 浏览 (1)

OH_ImageNative

typedef struct OH_ImageNative OH_ImageNative

Overview

The struct describes the alias for an image object at the native layer.

The struct cannot be directly operated. Instead, its fields must be operated by calling functions. The table below describes the content and operation mode of the OH_ImageNative struct.

Field TypeField NameField DescriptionOperation FunctionFunction Description
Image_SizeimageSizeImage size.OH_ImageNative_GetImageSizeObtains the image size of an OH_ImageNative object.
uint32_ttypesComponent type, which is used to describe the image's color component.OH_ImageNative_GetComponentTypesObtains the component types of an OH_ImageNative object.
OH_NativeBuffernativeBufferComponent buffer.OH_ImageNative_GetByteBufferObtains the buffer corresponding to a component type in an OH_ImageNative object.
size_tbufferSizeBuffer size.OH_ImageNative_GetBufferSizeObtains the size of the buffer corresponding to a component type in an OH_ImageNative object.
int32_trowStrideRow stride.OH_ImageNative_GetRowStrideObtains the row stride corresponding to a component type in an OH_ImageNative object.
int32_tpixelStridePixel stride.OH_ImageNative_GetPixelStrideObtains the pixel stride corresponding to a component type in an OH_ImageNative object.

To release an OH_ImageNative object, call OH_ImageNative_Release.

Since: 12

Related module: Image_NativeModule

Header file: image_native.h

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

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