pub unsafe extern "C" fn OH_PixelmapNative_ConvertPixelmapNativeToNapi(
env: napi_env,
pixelmapNative: *mut OH_PixelmapNative,
pixelmapNapi: *mut napi_value,
) -> ImageResultAvailable on crate features
api-12 and pixelmap only.Expand description
Convert a native PixelMap object to PixelMap napi object.
§Arguments
-
env- Indicates the NAPI environment pointer. -
pixelmapNative- Indicates a pointer to the PixelMap object created at the native layer. -
pixelmapNapi- the PixelMap pointer will be converted.
§Returns
- Image functions result code.
[
IMAGE_SUCCESS] if the execution is successful. [IMAGE_BAD_PARAMETER] pixelmapNative is nullptr
Available since API-level: 12