Enum resize::Pixel [] [src]

pub enum Pixel {
    Gray8,
    RGB24,
    RGBA,
}

Supported pixel formats.

Variants

Gray8

Grayscale, 8-bit.

RGB24

RGB, 8-bit per component.

RGBA

RGBA, 8-bit per component.

Methods

impl Pixel
[src]

fn get_size(&self) -> usize

Size of one pixel in that format in bytes.

fn get_ncomponents(&self) -> usize

Return number of components of that format.

Trait Implementations

impl Copy for Pixel
[src]

impl Clone for Pixel
[src]

fn clone(&self) -> Pixel

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Pixel
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.