harmony 鸿蒙OH_ImageNative

  • 2025-06-12
  • 浏览 (3)

OH_ImageNative

概述

为图像接口定义native层图像对象的别名。

此结构体内容不可直接操作,采用函数调用方式操作具体字段,结构体内容和操作方式如下:

字段类型 字段名称 字段描述 操作函数 函数描述
Image_Size imageSize 图像大小 OH_ImageNative_GetImageSize 获取 OH_ImageNative 对象的 Image_Size 信息。
uint32_t types 组件类型,用于描述图像颜色分量。 OH_ImageNative_GetComponentTypes 获取 OH_ImageNative 对象的组件列表信息。
OH_NativeBuffer nativeBuffer 组件缓冲区 OH_ImageNative_GetByteBuffer 获取 OH_ImageNative 对象中某个组件类型所对应的缓冲区。
size_t bufferSize 缓冲区的大小 OH_ImageNative_GetBufferSize 获取 OH_ImageNative 对象中某个组件类型所对应的缓冲区的大小。
int32_t rowStride 像素行宽 OH_ImageNative_GetRowStride 获取 OH_ImageNative 对象中某个组件类型所对应的像素行宽。
int32_t pixelStride 像素大小 OH_ImageNative_GetPixelStride 获取 OH_ImageNative 对象中某个组件类型所对应的像素大小。

释放OH_ImageNative对象使用OH_ImageNative_Release函数。

起始版本: 12

相关模块: Image_NativeModule

所在头文件: image_native.h

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit(图片处理服务)

harmony 鸿蒙Interface (AuxiliaryPicture)

harmony 鸿蒙Interface (Image)

harmony 鸿蒙Interface (ImageCreator)

harmony 鸿蒙Interface (ImagePacker)

harmony 鸿蒙Interface (ImageReceiver)

harmony 鸿蒙Interface (ImageSource)

harmony 鸿蒙Interface (Metadata)

harmony 鸿蒙Interface (Picture)

harmony 鸿蒙Interface (PixelMap)

0  赞