harmony 鸿蒙image_mdk.h
image_mdk.h
Overview
The image_mdk.h file declares the APIs used to access the image rectangle, size, format, and component data.
Library: libimage_ndk.z.so
File to include: <multimedia/image_framework/image_mdk.h>
Since: 10
Related module: Image
Summary
Structs
Name | Description |
---|---|
struct OhosImageRect | Defines the information about an image rectangle. |
struct OhosImageComponent | Defines the information about an image component. |
Types
Name | Description |
---|---|
typedef struct ImageNative_ ImageNative | Defines an image object at the native layer. |
Enums
Name | Description |
---|---|
{ OHOS_IMAGE_FORMAT_YCBCR_422_SP = 1000, OHOS_IMAGE_FORMAT_JPEG = 2000, } |
Enumerates the image formats. |
{ OHOS_IMAGE_COMPONENT_FORMAT_YUV_Y = 1, OHOS_IMAGE_COMPONENT_FORMAT_YUV_U = 2, OHOS_IMAGE_COMPONENT_FORMAT_YUV_V = 3, OHOS_IMAGE_COMPONENT_FORMAT_JPEG = 4, } |
Enumerates the image components. |
Functions
Name | Description |
---|---|
ImageNative * OH_Image_InitImageNative (napi_env env, napi_value source) | Converts an Image object at the JavaScript native layer into an ImageNative object. |
int32_t OH_Image_ClipRect (const ImageNative *native, struct OhosImageRect *rect) | Obtains OhosImageRect of an ImageNative object. |
int32_t OH_Image_Size (const ImageNative *native, struct OhosImageSize *size) | Obtains OhosImageSize of an ImageNative object. |
int32_t OH_Image_Format (const ImageNative *native, int32_t *format) | Obtains the image format of an ImageNative object. |
int32_t OH_Image_GetComponent (const ImageNative *native, int32_t componentType, struct OhosImageComponent *componentNative) | Obtains OhosImageComponent of an ImageNative object. |
int32_t OH_Image_Release (ImageNative *native) | Releases an ImageNative object. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙_image___native_module
harmony 鸿蒙ImageEffect_FilterDelegate
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦