1e41f4b71Sopenharmony_ci# image_native.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe **image_native.h** file declares the cropping rectangle, size, and component data of an image.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**Library**: libohimage.so
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Multimedia.Image.Core
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Since**: 12
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Related module**: [Image_NativeModule](_image___native_module.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## Summary
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci### Types
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci| Name| Description| 
23e41f4b71Sopenharmony_ci| -------- | -------- |
24e41f4b71Sopenharmony_ci| typedef struct [OH_ImageNative](_image___native_module.md#oh_imagenative) [OH_ImageNative](_image___native_module.md#oh_imagenative) | Defines the alias for an image object at the native layer. | 
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci### Functions
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci| Name| Description| 
30e41f4b71Sopenharmony_ci| -------- | -------- |
31e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_GetImageSize](_image___native_module.md#oh_imagenative_getimagesize) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image, [Image_Size](_image___size.md) \*size) | Obtains the [Image_Size](_image___size.md) information of an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
32e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_GetComponentTypes](_image___native_module.md#oh_imagenative_getcomponenttypes) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image, uint32_t \*\*types, size_t \*typeSize) | Obtains the component types of an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
33e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_GetByteBuffer](_image___native_module.md#oh_imagenative_getbytebuffer) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image, uint32_t componentType, OH_NativeBuffer \*\*nativeBuffer) | Obtains the buffer corresponding to a component type in an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
34e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_GetBufferSize](_image___native_module.md#oh_imagenative_getbuffersize) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image, uint32_t componentType, size_t \*size) | Obtains the size of the buffer corresponding to a component type in an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
35e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_GetRowStride](_image___native_module.md#oh_imagenative_getrowstride) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image, uint32_t componentType, int32_t \*rowStride) | Obtains the row stride corresponding to a component type in an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
36e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_GetPixelStride](_image___native_module.md#oh_imagenative_getpixelstride) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image, uint32_t componentType, int32_t \*pixelStride) | Obtains the pixel stride corresponding to a component type in an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
37e41f4b71Sopenharmony_ci| [Image_ErrorCode](_image___native_module.md#image_errorcode) [OH_ImageNative_Release](_image___native_module.md#oh_imagenative_release) ([OH_ImageNative](_image___native_module.md#oh_imagenative) \*image) | Releases an [OH_ImageNative](_image___native_module.md#oh_imagenative) object. | 
38