openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-imageinfo

2026-08-25 浏览 (1)

OH_Pixelmap_ImageInfo

struct OH_Pixelmap_ImageInfo

Overview

The OH_Pixelmap_ImageInfo struct describes the image information encapsulated at the native layer. The struct stores the width, height, row stride, pixel format, and HDR of an image.

To create an OH_Pixelmap_ImageInfo object, call OH_PixelmapImageInfo_Create.

To release an OH_Pixelmap_ImageInfo object, call OH_PixelmapImageInfo_Release.

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

Field TypeField NameField DescriptionOperation FunctionFunction Description
uint32_twidthImage width.OH_PixelmapImageInfo_GetWidthObtains the image width.
uint32_theightImage height.OH_PixelmapImageInfo_GetHeightObtains the image height.
uint32_trowStrideRow stride.OH_PixelmapImageInfo_GetRowStrideObtains the row stride.
int32_tpixelFormatPixel format.OH_PixelmapImageInfo_GetPixelFormatObtains the pixel format.
int32_talphaTypeAlpha type.OH_PixelmapImageInfo_GetAlphaTypeObtains the alpha type.
boolisHdrWhether the image is an HDR image.OH_PixelmapImageInfo_GetDynamicRangeObtains the dynamic range of a PixelMap.

Since: 12

Related module: Image_NativeModule

Header file: pixelmap_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/O2yNZsI8