harmony 鸿蒙OH_ImageNative

2025-06-12 浏览 (1)

OH_ImageNative

概述

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

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

字段类型字段名称字段描述操作函数函数描述
Image_SizeimageSize图像大小OH_ImageNative_GetImageSize获取 OH_ImageNative 对象的 Image_Size 信息。
uint32_ttypes组件类型,用于描述图像颜色分量。OH_ImageNative_GetComponentTypes获取 OH_ImageNative 对象的组件列表信息。
OH_NativeBuffernativeBuffer组件缓冲区OH_ImageNative_GetByteBuffer获取 OH_ImageNative 对象中某个组件类型所对应的缓冲区。
size_tbufferSize缓冲区的大小OH_ImageNative_GetBufferSize获取 OH_ImageNative 对象中某个组件类型所对应的缓冲区的大小。
int32_trowStride像素行宽OH_ImageNative_GetRowStride获取 OH_ImageNative 对象中某个组件类型所对应的像素行宽。
int32_tpixelStride像素大小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)

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