[][src]Trait image::ImageDecoderExt

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

ImageDecoderExt trait

Required methods

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

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]
) -> ImageResult<()>

Read a rectangular section of the image.

Loading content...

Implementors

impl<'a, R: 'a + BufRead + Seek> ImageDecoderExt<'a> for HDRAdapter<R>[src]

impl<'a, R: 'a + Read + Seek> ImageDecoderExt<'a> for BMPDecoder<R>[src]

impl<'a, R: 'a + Read + Seek> ImageDecoderExt<'a> for DXTDecoder<R>[src]

Loading content...