Function crop
pub fn crop<I>(
image: &mut I,
x: u32,
y: u32,
width: u32,
height: u32,
) -> SubImage<&mut I>where
I: GenericImageView,
Available on crate feature
dep_image
only.Expand description
Return a mutable view into an image The coordinates set the position of the top left corner of the crop.