Skip to main content

pad_image

Function pad_image 

Source
pub fn pad_image(
    image: Image,
    width: u32,
    height: u32,
    meter: &Arc<Meter>,
) -> Result<Image, DecodeError>
Expand description

Extend the final column, row and corner with NEAREST sampling. Equal dimensions return the original allocation and charge, without work.