egui
0.28.1
In egui::widgets::image
Function
egui
::
widgets
::
image
::
scale_to_fit
Copy item path
source
ยท
[
−
]
fn scale_to_fit( image_size:
Vec2
, available_size:
Vec2
, maintain_aspect_ratio:
bool
, ) ->
Vec2