[−][src]Struct rin::graphics::image::tga::TGADecoder
The representation of a TGA decoder
Methods
impl<R> TGADecoder<R> where
R: Read + Seek,
[src]
impl<R> TGADecoder<R> where
R: Read + Seek,
pub fn new(r: R) -> Result<TGADecoder<R>, ImageError>
[src]
pub fn new(r: R) -> Result<TGADecoder<R>, ImageError>
Create a new decoder that decodes from the stream r
Trait Implementations
impl<R> ImageDecoder for TGADecoder<R> where
R: Read + Seek,
[src]
impl<R> ImageDecoder for TGADecoder<R> where
R: Read + Seek,
type Reader = TGAReader<R>
The type of reader produced by into_reader
.
fn dimensions(&self) -> (u64, u64)
[src]
fn dimensions(&self) -> (u64, u64)
fn colortype(&self) -> ColorType
[src]
fn colortype(&self) -> ColorType
fn scanline_bytes(&self) -> u64
[src]
fn scanline_bytes(&self) -> u64
fn into_reader(
self
) -> Result<<TGADecoder<R> as ImageDecoder>::Reader, ImageError>
[src]
fn into_reader(
self
) -> Result<<TGADecoder<R> as ImageDecoder>::Reader, ImageError>
fn read_image(self) -> Result<Vec<u8>, ImageError>
[src]
fn read_image(self) -> Result<Vec<u8>, ImageError>
fn row_bytes(&self) -> u64
[src]
fn row_bytes(&self) -> u64
Returns the number of bytes in a single row of the image. All decoders will pad image rows to a byte boundary. Read more
fn total_bytes(&self) -> u64
[src]
fn total_bytes(&self) -> u64
Returns the total number of bytes in the image.
fn read_image_with_progress<F>(
self,
progress_callback: F
) -> Result<Vec<u8>, ImageError> where
F: Fn(Progress),
[src]
fn read_image_with_progress<F>(
self,
progress_callback: F
) -> Result<Vec<u8>, ImageError> where
F: Fn(Progress),
Same as read_image
but periodically calls the provided callback to give updates on loading progress. Read more
Auto Trait Implementations
impl<R> Send for TGADecoder<R> where
R: Send,
impl<R> Send for TGADecoder<R> where
R: Send,
impl<R> Sync for TGADecoder<R> where
R: Sync,
impl<R> Sync for TGADecoder<R> where
R: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: Any,
[src]
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<V> IntoVec for V
[src]
impl<V> IntoVec for V
impl<V> IntoPnt for V
[src]
impl<V> IntoPnt for V
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
[src]
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
[src]
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
[src]
fn from_subset(element: &SS) -> SP
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self