Enum oxipng::png::BitDepth
[−]
[src]
pub enum BitDepth { One, Two, Four, Eight, Sixteen, }
The number of bits to be used per channel per pixel
Variants
One
One bit per channel per pixel
Two
Two bits per channel per pixel
Four
Four bits per channel per pixel
Eight
Eight bits per channel per pixel
Sixteen
Sixteen bits per channel per pixel
Methods
impl BitDepth
[src]
fn as_u8(&self) -> u8
Retrieve the number of bits per channel per pixel as a u8
fn from_u8(depth: u8) -> BitDepth
Parse a number of bits per channel per pixel into a BitDepth
Trait Implementations
impl Copy for BitDepth
[src]
impl Clone for BitDepth
[src]
fn clone(&self) -> BitDepth
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
impl PartialEq for BitDepth
[src]
fn eq(&self, __arg_0: &BitDepth) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.