pub unsafe extern "C" fn OH_ImagePacker_Create(
env: napi_env,
res: *mut napi_value,
) -> i32Expand description
@brief Creates an ImagePacker object at the JavaScript native layer.
@param env Indicates a pointer to the JavaScript Native Interface (JNI) environment. @param res Indicates a pointer to the ImagePacker object created at the JavaScript native layer. @return Returns {@link IRNdkErrCode} IMAGE_RESULT_SUCCESS - if the operation is successful. returns {@link IRNdkErrCode} IMAGE_RESULT_INVALID_PARAMETER - if invalid parameter.
@since 11 @version 4.1