image::imageops

Function crop_imm

Source
pub fn crop_imm<I: GenericImageView>(
    image: &I,
    x: u32,
    y: u32,
    width: u32,
    height: u32,
) -> SubImage<&I>
Expand description

Return an immutable view into an image The coordinates set the position of the top left corner of the crop.