Struct resize::Resizer [] [src]

pub struct Resizer {
    // some fields omitted
}

Simple resampler with preallocated buffers and coeffecients for the given dimensions. See also: * https://github.com/sekrit-twc/zimg/tree/master/src/zimg/resize * https://github.com/PistonDevelopers/image/blob/master/src/imageops/sample.rs

Methods

impl Resizer
[src]

fn new(w1: usize, h1: usize, w2: usize, h2: usize, t: Type) -> Resizer

Create a new resizer instance for the given dimensions and filter.

fn run(&mut self, src: &[u8], dst: &mut [u8])

Resize src image data into dst.

Trait Implementations

impl Debug for Resizer
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.