cosmic::iced::advanced::graphics::image::image_rs::imageops

Function interpolate_bilinear

source
pub fn interpolate_bilinear<P>(
    img: &impl GenericImageView<Pixel = P>,
    x: f32,
    y: f32,
) -> Option<P>
where P: Pixel,
Expand description

Linearly sample from an image using coordinates in [0, w-1] and [0, h-1].