Skip to main content

paint_fitted

Function paint_fitted 

pub fn paint_fitted(
    picture: &WindowPicture,
    scene: &mut Scene,
    transform: Affine,
    into: Rect,
) -> Rect
Expand description

Paint picture fitted inside into (fitted_rect) through transform, clipped to where it lands; returns that rect, empty when the picture or into has no area.