Function image::imageops::sample_nearest

source ·
pub fn sample_nearest<P: Pixel>(
    img: &impl GenericImageView<Pixel = P>,
    u: f32,
    v: f32
) -> Option<P>
Expand description

Image sampling Sample from an image using coordinates in [0, 1], taking the nearest coordinate.