Function iced::widget::image::viewer::image_size

source ·
pub fn image_size<Renderer>(
    renderer: &Renderer,
    handle: &<Renderer as Renderer>::Handle,
    state: &State,
    bounds: Size
) -> Size
where Renderer: Renderer,
Available on crate feature image only.
Expand description

Returns the bounds of the underlying image, given the bounds of the Viewer. Scaling will be applied and original aspect ratio will be respected.