i_slint_core::graphics

Function fit

Source
pub fn fit(
    image_fit: ImageFit,
    target: Size2D<f32, PhysicalPx>,
    source_rect: IntRect,
    scale_factor: ScaleFactor,
    alignment: (ImageHorizontalAlignment, ImageVerticalAlignment),
    tiling: (ImageTiling, ImageTiling),
) -> FitResult
Expand description

Return an FitResult that can be used to render an image in a buffer that matches a given ImageFit