Skip to main content

clip_mask

Function clip_mask 

Source
pub fn clip_mask(
    width: u32,
    height: u32,
    polygons: &[Vec<Point>],
    even_odd: bool,
) -> ClipMask
Expand description

Rasterise polygons into a clip mask of the given size: inside where the fill rule says painted, outside everywhere else.