Function picto::processing::scale::to
[−]
[src]
pub fn to<'i, A, I, PI, CI, PO, CO>(
input: I,
width: u32,
height: u32
) -> Buffer<PO, CO, Vec<CO>> where
A: Scaler<PI, CI, PO, CO>,
PO: From<PI>,
PO: Write<CO>,
CO: Channel,
PI: Read<CI>,
CI: Channel,
I: Into<Read<'i, PI, CI>>,
Scale to the given width and height, maintaining the aspect ratio.