Skip to main content

OH_ImageSourceNative_CreateFromRawFile

Function OH_ImageSourceNative_CreateFromRawFile 

Source
pub unsafe extern "C" fn OH_ImageSourceNative_CreateFromRawFile(
    rawFile: *mut RawFileDescriptor,
    res: *mut *mut OH_ImageSourceNative,
) -> Image_ErrorCode
Expand description

@brief Creates an void pointer

@param rawFile Indicates the raw file’s file descriptor. @param res Indicates a void pointer to the ImageSource object created at the C++ native layer. @return Returns one of the following result codes: {@link IMAGE_SUCCESS} if the execution is successful. {@link IMAGE_BAD_PARAMETER} if rawFile is a null pointer. @since 12