[][src]Trait rin::graphics::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

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

Provided Methods

Read a rectangular section of the image.

Implementors

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

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