Skip to main content

OH_ImageSourceNative_CreateFromData

Function OH_ImageSourceNative_CreateFromData 

Source
pub unsafe extern "C" fn OH_ImageSourceNative_CreateFromData(
    data: *mut u8,
    dataSize: usize,
    res: *mut *mut OH_ImageSourceNative,
) -> ImageResult
Available on crate features api-12 and image-source only.
Expand description

Creates an void pointer

§Arguments

  • data - Indicates a pointer to the image source data. Only a formatted packet data or Base64 data is accepted.

  • dataSize - Indicates the size of the image source data.

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

§Returns

  • Returns [Image_ErrorCode]

Available since API-level: 12