Enum luminance::pixel::Format
[−]
[src]
pub enum Format { R(u8), RG(u8, u8), RGB(u8, u8, u8), RGBA(u8, u8, u8, u8), Depth(u8), }
Format of a pixel.
Whichever the constructor you choose, the carried u8
s represents how many bytes are used to
represent each channel.
Variants
R(u8)
Holds a red-only channel.
RG(u8, u8)
Holds red and green channels.
RGB(u8, u8, u8)
Holds red, green and blue channels.
RGBA(u8, u8, u8, u8)
Holds red, green, blue and alpha channels.
Depth(u8)
Holds a depth channel.
Trait Implementations
impl Clone for Format
[src]
fn clone(&self) -> Format
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