Struct imagefmt::Image [] [src]

pub struct Image<T> {
    pub w: usize,
    pub h: usize,
    pub fmt: ColFmt,
    pub buf: Vec<T>,
}

Image struct returned from the read functions.

Fields

Methods

impl<T: Sample> Image<T>
[src]

Converts the image into a new allocation.

Trait Implementations

impl<T: Clone> Clone for Image<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Image<u8>
[src]

Formats the value using the given formatter.

impl Debug for Image<u16>
[src]

Formats the value using the given formatter.