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
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