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,
) -> ImageResult
Available on crate features api-12 and image-source only.
Expand description

Creates an void pointer

§Arguments

  • rawFile - Indicates the raw file’s file descriptor.

  • res - Indicates a void pointer to the ImageSource object created at the C++ native layer.

§Returns

  • Returns [Image_ErrorCode]

Available since API-level: 12