Function image_utils::crop
[−]
[src]
pub fn crop(src: &Path,
x: u32,
y: u32,
width: u32,
height: u32,
dest: &Path,
timeout: u32)
-> Result<bool, Box<Error>>
Crops image, panics if passed coordinates or cropped image size are out of bounds of existing image, fails if timeout exceeded
src - source image file
x - width offset
y - height offset
width - crop width
height - crop height
dest - destination image file
timeout - function timeout in seconds
Returns true on success