[][src]Struct 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<BitmapHeader> for PNMHeader
[src]

Performs the conversion.

impl From<GraymapHeader> for PNMHeader
[src]

Performs the conversion.

impl From<PixmapHeader> for PNMHeader
[src]

Performs the conversion.

impl From<ArbitraryHeader> for PNMHeader
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for PNMHeader

impl Sync for PNMHeader

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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.

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

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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.

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

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.