Enum png::ColorType
[−]
[src]
pub enum ColorType {
Grayscale,
RGB,
Indexed,
GrayscaleAlpha,
RGBA,
}Variants
Grayscale | ||
RGB | ||
Indexed | ||
GrayscaleAlpha | ||
RGBA |
Methods
impl ColorType
fn samples(&self) -> usize
Returns the number of samples used per pixel of ColorType
fn from_u8(n: u8) -> Option<ColorType>
u8 -> Self. Temporary solution until Rust provides a canonical one.