Function image_utils::crop [] [src]

pub fn crop(
    src: &Path,
    x: u32,
    y: u32,
    width: u32,
    height: u32,
    dest: &Path
) -> Result<(), Box<Error>>

Crops image, panics if passed coordinates or cropped image size are out of bounds of existing image

src - source image file

x - width offset

y - height offset

width - crop width

height - crop height

dest - destination image file