cosmic::iced_winit::graphics::image::image_rs::imageops

Function crop_imm

source
pub fn crop_imm<I>(
    image: &I,
    x: u32,
    y: u32,
    width: u32,
    height: u32,
) -> SubImage<&I>
Expand description

Return an immutable view into an image The coordinates set the position of the top left corner of the crop.