Skip to main content

OH_PixelmapNative_ConvertPixelmapNativeFromNapi

Function OH_PixelmapNative_ConvertPixelmapNativeFromNapi 

Source
pub unsafe extern "C" fn OH_PixelmapNative_ConvertPixelmapNativeFromNapi(
    env: napi_env,
    pixelmapNapi: napi_value,
    pixelmapNative: *mut *mut OH_PixelmapNative,
) -> Image_ErrorCode
Expand description

@brief Convert a PixelMap napi object to native PixelMap object.

@param env Indicates the NAPI environment pointer. @param pixelmapNapi Indicates napi PixelMap object. @param pixelmapNative Indicates native PixelMap pointer to created. @return Image functions result code. {@link IMAGE_SUCCESS} if the execution is successful. {@link IMAGE_BAD_PARAMETER} pixelmapNative is nullptr, or pixelmapNapi is not a PixelMap @since 12