Struct TgaDecoder
pub struct TgaDecoder<R> { /* private fields */ }
The representation of a TGA decoder
Implementations
impl<R: Read> TgaDecoder<R>
fn new(r: R) -> ImageResult<TgaDecoder<R>>Create a new decoder that decodes from the stream
r
Trait Implementations
impl<R: Read> ImageDecoder for TgaDecoder<R>
fn dimensions(&self) -> (u32, u32)fn color_type(&self) -> ColorTypefn original_color_type(&self) -> ExtendedColorTypefn read_image(self, buf: &mut [u8]) -> ImageResult<()>fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>