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]

[src]

Creates a new Pixel.

Trait Implementations

impl Clone for Pixel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Pixel
[src]

impl Debug for Pixel
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Pixel
[src]

impl PartialEq for Pixel
[src]

[src]

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

[src]

This method tests for !=.

impl Display for Pixel
[src]

Displays the rgb values as an rgb color triple

[src]

Formats the value using the given formatter. Read more

impl UpperHex for Pixel
[src]

Displays the rgb values as an upper-case 24-bit hexadecimal number

[src]

Formats the value using the given formatter.

impl LowerHex for Pixel
[src]

Displays the rgb values as a lower-case 24-bit hexadecimal number

[src]

Formats the value using the given formatter.

Auto Trait Implementations

impl Send for Pixel

impl Sync for Pixel