Struct bmp::Pixel [] [src]

pub struct Pixel {
    pub r: u8,
    pub g: u8,
    pub b: u8,
}

The pixel data used in the Image.

It has three values for the red, blue and green color channels, respectively.

Fields

Methods

impl Pixel
[src]

Creates a new Pixel.

Trait Implementations

impl Clone for Pixel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Pixel
[src]

impl Debug for Pixel
[src]

Formats the value using the given formatter.

impl Eq for Pixel
[src]

impl PartialEq for Pixel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.