1# OH_Pixelmap_ImageInfo 2 3## Overview 4 5The 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. 6 7To create an OH_Pixelmap_ImageInfo object, call [OH_PixelmapImageInfo_Create](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_create). 8 9To release an OH_Pixelmap_ImageInfo object, call [OH_PixelmapImageInfo_Release](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_release). 10 11The table below describes the content and operation mode of the OH_Pixelmap_ImageInfo struct. 12 13| Field Type| Field Name| Field Description|Operation Function| Function Description| 14| -------- | -------- | -------- | -------- | -------- | 15| uint32_t | width | Image width.| [OH_PixelmapImageInfo_GetWidth](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_getwidth) | Obtains the image width.| 16| uint32_t | height | Image height.| [OH_PixelmapImageInfo_GetHeight](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_getheight) | Obtains the image height.| 17| uint32_t | rowStride | Row stride.| [OH_PixelmapImageInfo_GetRowStride](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_getrowstride) | Obtains the row stride.| 18| int32_t | pixelFormat| Pixel format.| [OH_PixelmapImageInfo_GetPixelFormat](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_getpixelformat) |Obtains the pixel format.| 19| int32_t | alphaType | Alpha type.| [OH_PixelmapImageInfo_GetAlphaType](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_getalphatype) |Obtains the alpha type.| 20| bool | isHdr | Dynamic range.| [OH_PixelmapImageInfo_GetDynamicRange](capi-pixelmap-native-h.md#oh_pixelmapimageinfo_getdynamicrange) |Obtains the dynamic range of a PixelMap.| 21 22**Since**: 12 23 24**Related module**: [Image_NativeModule](capi-image-nativemodule.md) 25 26**Header file**: [pixelmap_native.h](capi-pixelmap-native-h.md) 27