Function image::codecs::jpeg::encoder::pixel_at_or_near

source ยท
fn pixel_at_or_near<I: GenericImageView>(source: &I, x: u32, y: u32) -> I::Pixel
Expand description

Returns the pixel at (x,y) if (x,y) is in the image, otherwise the closest pixel in the image