pub unsafe extern "C" fn OH_ImageSource_CreateFromRawFile(
env: napi_env,
rawFile: RawFileDescriptor,
ops: *mut OhosImageSourceOps,
res: *mut napi_value,
) -> i32Expand description
@brief Creates an ImageSource object at the JavaScript native layer based on the specified raw file’s file descriptor and {@link OhosImageSourceOps} structs.
@param env Indicates a pointer to the Java Native Interface (JNI) environment. @param rawFile Indicates the raw file’s file descriptor. @param ops Indicates a pointer to the options for creating the image source. For details, see {@link OhosImageSourceOps}. @param res Indicates a pointer to the ImageSource object created at the JavaScript native layer. @return Returns {@link IRNdkErrCode} IMAGE_RESULT_SUCCESS - if the operation is successful. returns {@link IRNdkErrCode} IMAGE_RESULT_BAD_PARAMETER - if bad parameter. returns {@link IRNdkErrCode} IMAGE_RESULT_JNI_ENV_ABNORMAL - if Abnormal JNI environment. returns {@link IRNdkErrCode} IMAGE_RESULT_INVALID_PARAMETER - if invalid parameter. @see {@link OhosImageSourceOps}
@since 11 @version 4.1