pub fn translate<P>(image: &Image<P>, t: (i32, i32)) -> Image<P>
where P: Pixel,
Expand description

Translates the input image by t. Note that image coordinates increase from top left to bottom right. Output pixels whose pre-image are not in the input image are set to the boundary pixel in the input image nearest to their pre-image.