openharmony 鸿蒙 capi-image-nativemodule-imagesource-info

2026-08-25 浏览 (1)

OH_ImageSource_Info

struct OH_ImageSource_Info

Overview

The OH_ImageSource_Info struct describes the image source information encapsulated at the native layer. The struct cannot be directly operated. Instead, functions must be called to create and release the struct and operate the fields in the struct.

To create an OH_ImageSource_Info object, call OH_ImageSourceInfo_Create.

To release an OH_ImageSource_Info object, call OH_ImageSourceInfo_Release. After this API is called, all properties related to the OH_ImageSource_Info struct are released. Therefore, before calling this API, ensure that the relevant properties are no longer needed or that a deep copy of these properties has been completed.

The table below describes the content and operation mode of the OH_ImageSource_Info struct.

Field TypeField NameField DescriptionOperation FunctionFunction Description
uint32_twidthImage width.OH_ImageSourceInfo_GetWidthObtains the image width.
uint32_theightImage height.OH_ImageSourceInfo_GetHeightObtains the image height.
boolisHdrWhether the image is an HDR image.OH_ImageSourceInfo_GetDynamicRangeObtains the dynamic range of an image.
Image_MimeTypemimeTypePointer to the image MIME type.OH_ImageSourceInfo_GetMimetypeObtains the MIME type of an image.

Since: 12

Related module: Image_NativeModule

Header file: image_source_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/Aq8nm63q