Struct image::hdr::HDRAdapter [−][src]
pub struct HDRAdapter<R: BufRead> { /* fields omitted */ }
Adapter to conform to ImageDecoder trait
Methods
impl<R: BufRead> HDRAdapter<R>[src]
impl<R: BufRead> HDRAdapter<R>pub fn new(r: R) -> ImageResult<HDRAdapter<R>>[src]
pub fn new(r: R) -> ImageResult<HDRAdapter<R>>Creates adapter
pub fn new_nonstrict(r: R) -> ImageResult<HDRAdapter<R>>[src]
pub fn new_nonstrict(r: R) -> ImageResult<HDRAdapter<R>>Allows reading old Radiance HDR images
Trait Implementations
impl<R: Debug + BufRead> Debug for HDRAdapter<R>[src]
impl<R: Debug + BufRead> Debug for HDRAdapter<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: BufRead> ImageDecoder for HDRAdapter<R>[src]
impl<R: BufRead> ImageDecoder for HDRAdapter<R>fn dimensions(&mut self) -> ImageResult<(u32, u32)>[src]
fn dimensions(&mut self) -> ImageResult<(u32, u32)>Returns a tuple containing the width and height of the image
fn colortype(&mut self) -> ImageResult<ColorType>[src]
fn colortype(&mut self) -> ImageResult<ColorType>Returns the color type of the image e.g. RGB(8) (8bit RGB)
fn row_len(&mut self) -> ImageResult<usize>[src]
fn row_len(&mut self) -> ImageResult<usize>Returns the length in bytes of one decoded row of the image
fn read_scanline(&mut self, _: &mut [u8]) -> ImageResult<u32>[src]
fn read_scanline(&mut self, _: &mut [u8]) -> ImageResult<u32>Reads one row from the image into buf and returns the row index
fn read_image(&mut self) -> ImageResult<DecodingResult>[src]
fn read_image(&mut self) -> ImageResult<DecodingResult>Decodes the entire image and return it as a Vector
fn is_animated(&mut self) -> ImageResult<bool>[src]
fn is_animated(&mut self) -> ImageResult<bool>Returns true if the image is animated
fn into_frames(self) -> ImageResult<Frames>[src]
fn into_frames(self) -> ImageResult<Frames>Returns the frames of the image Read more
fn load_rect(
&mut self,
x: u32,
y: u32,
length: u32,
width: u32
) -> ImageResult<Vec<u8>>[src]
fn load_rect(
&mut self,
x: u32,
y: u32,
length: u32,
width: u32
) -> ImageResult<Vec<u8>>Decodes a specific region of the image, represented by the rectangle starting from x and y and having length and width Read more
Auto Trait Implementations
impl<R> Send for HDRAdapter<R> where
R: Send,
impl<R> Send for HDRAdapter<R> where
R: Send, impl<R> Sync for HDRAdapter<R> where
R: Sync,
impl<R> Sync for HDRAdapter<R> where
R: Sync,