[−][src]Struct pxm::PFM
PFM struct contains all the information about a PFM file. Note that
Fields
width: usize
Width of image.
height: usize
Hight of image.
color: bool
True for RGB image, False for monochrome image.
scale_factor: f32
Scaling factor of pixel values.
endian: Endian
Endianness of pixel value in the PFM file.
data: Vec<f32>
Raw pixel values which are stored in the top to bottom, left to right order without dividing the scale factor.
Methods
impl PFM
[src]
pub fn read_from(reader: &mut impl Read) -> Result<PFM, &'static str>
[src]
Create PFM
struct from objects implementing Read
trait.
pub fn write_into(&self, writer: &mut impl Write) -> Result<(), &'static str>
[src]
Encode and write PFM
to objects implementing Write
trait.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,