[][src]Struct rin::graphics::image::pnm::PNMHeader

pub struct PNMHeader { /* fields omitted */ }

Stores the complete header data of a file.

Internally, provides mechanisms for lossless reencoding. After reading a file with the decoder it is possible to recover the header and construct an encoder. Using the encoder on the just loaded image should result in a byte copy of the original file (for single image pnms without additional trailing data).

Methods

impl PNMHeader
[src]

Retrieve the format subtype from which the header was created.

The width of the image this header is for.

The height of the image this header is for.

The biggest value a sample can have. In other words, the colour resolution.

Retrieve the underlying bitmap header if any

Retrieve the underlying graymap header if any

Retrieve the underlying pixmap header if any

Retrieve the underlying arbitrary header if any

Write the header back into a binary stream

Trait Implementations

impl From<ArbitraryHeader> for PNMHeader
[src]

impl From<PixmapHeader> for PNMHeader
[src]

impl From<GraymapHeader> for PNMHeader
[src]

impl From<BitmapHeader> for PNMHeader
[src]

Auto Trait Implementations

impl Send for PNMHeader

impl Sync for PNMHeader

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T
[src]

Should always be Self