Skip to main content

OH_Image_InitImageNative

Function OH_Image_InitImageNative 

Source
pub unsafe extern "C" fn OH_Image_InitImageNative(
    env: napi_env,
    source: napi_value,
) -> *mut ImageNative
Expand description

@brief Parses an {@link ImageNative} object at the native layer from a JavaScript native API image object.

@param env Indicates the pointer to the Java Native Interface (JNI) environment. @param source Indicates a JavaScript native API image object. @return Returns an {@link ImageNative} pointer object if the operation is successful returns a null pointer otherwise. @see ImageNative, OH_Image_Release @since 10 @version 2.0