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