Function load_image_from_source

Source
pub fn load_image_from_source(
    source: &ImageSource,
) -> Result<ImageData, ImageError>
Expand description

Decodes an image from a given source.

This function should be called outside of the component’s measure closure to avoid decoding the image on every frame.