harmony 鸿蒙OH_ImageSource_Info

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

OH_ImageSource_Info

概述

OH_ImageSource_Info是native层封装的ImageSource信息结构体,OH_ImageSource_Info结构体不可直接操作,而是采用函数调用方式创建、释放结构体以及操作具体字段。

创建OH_ImageSource_Info对象使用OH_ImageSourceInfo_Create函数。

释放OH_ImageSource_Info对象使用OH_ImageSourceInfo_Release函数。

OH_ImageSource_Info结构体内容和操作方式如下:

字段类型 字段名称 字段描述 操作函数 函数描述
uint32_t width 图片宽度 OH_ImageSourceInfo_GetWidth 获取图片的宽。
uint32_t height 图片高度 OH_ImageSourceInfo_GetHeight 获取图片的高。
bool isHdr 是否为高动态范围的信息 OH_ImageSourceInfo_GetDynamicRange 获取图片是否为高动态范围的信息。

起始版本: 13

相关模块: Image_NativeModule

所在头文件: image_source_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  赞