pub enum Pixels {
Bilevel(Vec<u8>),
Gray(Vec<u8>),
Gray16(Vec<u16>),
GrayAlpha(Vec<[u8; 2]>),
Rgb(Vec<[u8; 3]>),
Rgba(Vec<[u8; 4]>),
Cmyk(Vec<[u8; 4]>),
Indexed {
palette: Palette,
indices: Vec<u8>,
},
IndexedAlpha {
palette: Palette,
pixels: Vec<[u8; 2]>,
},
}Expand description
The pixels of a decoded image, row by row, in one of Pillow’s modes.
Variants§
Bilevel(Vec<u8>)
Mode 1: bilevel pixels, each 0 (black) or 255 (white).
Gray(Vec<u8>)
Mode L: 8-bit grey levels.
Gray16(Vec<u16>)
Mode I;16: 16-bit grey levels.
GrayAlpha(Vec<[u8; 2]>)
Mode LA: 8-bit grey levels with alpha.
Rgb(Vec<[u8; 3]>)
Mode RGB: 8-bit colours.
Rgba(Vec<[u8; 4]>)
Mode RGBA: 8-bit colours with straight (not premultiplied) alpha.
Cmyk(Vec<[u8; 4]>)
Mode CMYK: 8-bit ink amounts, 255 being full ink.
Indexed
Mode P: palette indices.
IndexedAlpha
Mode PA: palette indices with alpha.
Implementations§
Trait Implementations§
impl Eq for Pixels
impl StructuralPartialEq for Pixels
Auto Trait Implementations§
impl Forget for Pixels
impl Freeze for Pixels
impl Move for Pixels
impl RefUnwindSafe for Pixels
impl Send for Pixels
impl Sync for Pixels
impl Unpin for Pixels
impl UnsafeUnpin for Pixels
impl UnwindSafe for Pixels
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more