Struct image::pnm::PnmHeader [−][src]
pub struct PnmHeader { /* fields omitted */ }
Expand description
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).
Implementations
Retrieve the format subtype from which the header was created.
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
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.