Function cosmic::iced_winit::graphics::image::image_rs::imageops::sample_nearest
source ยท pub fn sample_nearest<P>(
img: &impl GenericImageView<Pixel = P>,
u: f32,
v: f32,
) -> Option<P>where
P: Pixel,
Expand description
Sample from an image using coordinates in [0, 1], taking the nearest coordinate.