Function cosmic::iced_widget::image::viewer::scaled_image_size
source ยท pub fn scaled_image_size<Renderer>(
renderer: &Renderer,
handle: &<Renderer as Renderer>::Handle,
state: &State,
bounds: Size,
content_fit: ContentFit,
) -> 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.