Enum imagefmt::ColFmt
[−]
[src]
pub enum ColFmt { Auto, Y, YA, AY, RGB, RGBA, BGR, BGRA, ARGB, ABGR, }
Color format – determines color type and channel order.
Auto
means automatic/infer
Variants
Auto
Y
YA
AY
RGB
RGBA
BGR
BGRA
ARGB
ABGR
Methods
impl ColFmt
[src]
fn color_type(self) -> ColType
Returns the color type of the color format.
fn has_alpha(self) -> Option<bool>
Returns whether self
has an alpha channel.
Trait Implementations
impl Clone for ColFmt
[src]
fn clone(&self) -> ColFmt
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