Function sample_nearest
pub fn sample_nearest<P>(
img: &impl GenericImageView<Pixel = P>,
u: f32,
v: f32,
) -> Option<P> ⓘwhere
P: Pixel,
Available on crate feature
dep_image
only.Expand description
Sample from an image using coordinates in [0, 1], taking the nearest coordinate.