[][src]Trait nannou::image::ImageDecoderExt

pub trait ImageDecoderExt: ImageDecoder {
    fn read_rect_with_progress<F>(
        &mut self,
        x: u64,
        y: u64,
        width: u64,
        height: u64,
        buf: &mut [u8],
        progress_callback: F
    ) -> Result<(), ImageError>
    where
        F: Fn(Progress)
; fn read_rect(
        &mut self,
        x: u64,
        y: u64,
        width: u64,
        height: u64,
        buf: &mut [u8]
    ) -> Result<(), ImageError> { ... } }

ImageDecoderExt trait

Required methods

fn read_rect_with_progress<F>(
    &mut self,
    x: u64,
    y: u64,
    width: u64,
    height: u64,
    buf: &mut [u8],
    progress_callback: F
) -> Result<(), ImageError> where
    F: Fn(Progress), 

Read a rectangular section of the image, periodically reporting progress.

Loading content...

Provided methods

fn read_rect(
    &mut self,
    x: u64,
    y: u64,
    width: u64,
    height: u64,
    buf: &mut [u8]
) -> Result<(), ImageError>

Read a rectangular section of the image.

Loading content...

Implementors

impl<R> ImageDecoderExt for BMPDecoder<R> where
    R: Read + Seek
[src]

fn read_rect(
    &mut self,
    x: u64,
    y: u64,
    width: u64,
    height: u64,
    buf: &mut [u8]
) -> Result<(), ImageError>
[src]

impl<R> ImageDecoderExt for DXTDecoder<R> where
    R: Read + Seek
[src]

fn read_rect(
    &mut self,
    x: u64,
    y: u64,
    width: u64,
    height: u64,
    buf: &mut [u8]
) -> Result<(), ImageError>
[src]

impl<R> ImageDecoderExt for HDRAdapter<R> where
    R: Seek + BufRead
[src]

fn read_rect(
    &mut self,
    x: u64,
    y: u64,
    width: u64,
    height: u64,
    buf: &mut [u8]
) -> Result<(), ImageError>
[src]

Loading content...