S or /

SourceEnum ImageFit

from egui import ImageFit
class ImageFit:

This type determines how the image should try to fit within the UI.

The final fit will be clamped to ImageSize.max_size.

Methods§

@staticmethod def Exact(size: Vec2) -> ImageFit§
@staticmethod def Fraction(fraction: Vec2) -> ImageFit§
@staticmethod def Original(scale: float) -> ImageFit§
def kind_name(self, /) -> str§
Sourcedef resolve(self, /, available_size: Vec2, image_size: Vec2) -> Vec2§
def value(self, /) -> Vec2§