Function image::imageops::sample::thumbnail_sample_block

source ยท
fn thumbnail_sample_block<I, P, S>(
    image: &I,
    left: u32,
    right: u32,
    bottom: u32,
    top: u32,
) -> (S, S, S, S)
where I: GenericImageView<Pixel = P>, P: Pixel<Subpixel = S>, S: Primitive + Enlargeable,
Expand description

Get a pixel for a thumbnail where the input window encloses at least a full pixel.