SourceEnum ImageFit
from egui import ImageFitclass ImageFit:This type determines how the image should try to fit within the UI.
The final fit will be clamped to ImageSize.max_size.
from egui import ImageFitclass ImageFit:This type determines how the image should try to fit within the UI.
The final fit will be clamped to ImageSize.max_size.
@staticmethod
def Exact(size: Vec2) -> ImageFit§@staticmethod
def Fraction(fraction: Vec2) -> ImageFit§@staticmethod
def Original(scale: float) -> ImageFit§def kind_name(self, /) -> str§def resolve(self, /, available_size: Vec2, image_size: Vec2) -> Vec2§def value(self, /) -> Vec2§