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