pub fn image_size<Renderer>(
    renderer: &Renderer,
    handle: &<Renderer as Renderer>::Handle,
    state: &State,
    bounds: Size
) -> Sizewhere
    Renderer: Renderer,
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.