Struct image::pnm::GraymapHeader
[−]
[src]
pub struct GraymapHeader { pub encoding: SampleEncoding, pub height: u32, pub width: u32, pub maxwhite: u32, }
Header produced by a pgm
file ("Portable Gray Map")
Fields
encoding: SampleEncoding
Binary or Ascii encoded file
height: u32
Height of the image file
width: u32
Width of the image file
maxwhite: u32
Maximum sample value within the image
Trait Implementations
impl Clone for GraymapHeader
[src]
fn clone(&self) -> GraymapHeader
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for GraymapHeader
[src]
impl Debug for GraymapHeader
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<GraymapHeader> for PNMHeader
[src]
fn from(header: GraymapHeader) -> Self
[src]
Performs the conversion.