1# OH_ImageNative 2 3## Overview 4 5The OH_ImageNative struct describes the alias for an image object at the native layer. 6 7The struct cannot be directly operated. Instead, its fields must be operated by calling functions. The table below describes the content and operation mode of the OH_ImageNative struct. 8 9| Field Type| Field Name| Field Description|Operation Function| Function Description| 10| -------- | -------- | -------- | -------- | -------- | 11| Image_Size| imageSize | Image size.|[OH_ImageNative_GetImageSize](capi-image-native-h.md#oh_imagenative_getimagesize) | Obtains the image size of an OH_ImageNative object.| 12| uint32_t | types |Component type, which is used to describe the image's color component.|[OH_ImageNative_GetComponentTypes](capi-image-native-h.md#oh_imagenative_getcomponenttypes) | Obtains the component types of an OH_ImageNative object.| 13| OH_NativeBuffer | nativeBuffer | Component buffer.|[OH_ImageNative_GetByteBuffer](capi-image-native-h.md#oh_imagenative_getbytebuffer) | Obtains the buffer corresponding to a component type in an OH_ImageNative object.| 14| size_t | bufferSize | Buffer size.| [OH_ImageNative_GetBufferSize](capi-image-native-h.md#oh_imagenative_getbuffersize) | Obtains the size of the buffer corresponding to a component type in an OH_ImageNative object.| 15| int32_t | rowStride | Row stride.| [OH_ImageNative_GetRowStride](capi-image-native-h.md#oh_imagenative_getrowstride) | Obtains the row stride corresponding to a component type in an OH_ImageNative object.| 16| int32_t | pixelStride | Pixel stride.| [OH_ImageNative_GetPixelStride](capi-image-native-h.md#oh_imagenative_getpixelstride) | Obtains the pixel stride corresponding to a component type in an OH_ImageNative object.| 17 18To release an OH_ImageNative object, call [OH_ImageNative_Release](capi-image-native-h.md#oh_imagenative_release). 19 20**Since**: 12 21 22**Related module**: [Image_NativeModule](capi-image-nativemodule.md) 23 24**Header file**: [image_native.h](capi-image-native-h.md) 25