cosmic::iced_renderer::graphics::image::image_rs::imageops

Function sample_bilinear

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

Linearly sample from an image using coordinates in [0, 1].