harmony 鸿蒙OH_ImageSource_Info

2025-06-12 浏览 (1)

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_twidth图片宽度OH_ImageSourceInfo_GetWidth获取图片的宽。
uint32_theight图片高度OH_ImageSourceInfo_GetHeight获取图片的高。
boolisHdr是否为高动态范围的信息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)

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