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
r: u8
g: u8
b: u8
Methods
impl Pixel
[src]
Trait Implementations
impl Clone for Pixel
[src]
fn clone(&self) -> Pixel
[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 Pixel
[src]
impl Debug for Pixel
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Pixel
[src]
impl PartialEq for Pixel
[src]
fn eq(&self, __arg_0: &Pixel) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pixel) -> bool
[src]
This method tests for !=
.
impl Display for Pixel
[src]
Displays the rgb values as an rgb color triple
fn fmt(&self, f: &mut Formatter) -> Result
[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
impl LowerHex for Pixel
[src]
Displays the rgb values as a lower-case 24-bit hexadecimal number