Skip to main content

apply_crop

Function apply_crop 

Source
pub fn apply_crop(image: &mut RgbImage, crop: Rect)
Expand description

Crop an RGB image to the given rectangle.

If the crop region extends beyond image bounds, a warning is logged and the image is left unchanged.