Skip to main content

ImageSource

Trait ImageSource 

Source
pub trait ImageSource: Send {
    // Required method
    fn get_row(&mut self, y: u32, row_buf: &mut [u8]);
}
Expand description

Caller-supplied source for a colour image: one row at a time.

Matches the SplashImageSource callback convention from splash/SplashTypes.h.

Required Methods§

Source

fn get_row(&mut self, y: u32, row_buf: &mut [u8])

Fill row_buf with pixel data for source row y.

row_buf.len() must equal src_width * ncomps.

Implementors§