pub async fn load_image(
file: File,
request_dimensions: Option<ImageDimensions>,
) -> Result<Paintable, ErrorCtx>
Expand description
Load the given file as an image into a GdkPaintable
.
Set request_dimensions
if the image will be shown at specific dimensions.
To show the image at its natural size, set it to None
.