#[repr(C)]pub enum PixelFormat {
Show 20 variants
RGB555 = 1,
RGB565 = 2,
RGB888 = 3,
BGR555 = 4,
BGR565 = 5,
BGR888 = 6,
ARGB8888 = 16,
RGBA8888 = 17,
ABGR8888 = 18,
BGRA8888 = 19,
G1 = 64,
G2 = 65,
G4 = 66,
G8 = 67,
AG88 = 83,
GA88 = 99,
Pal1 = 128,
Pal2 = 129,
Pal4 = 130,
Pal8 = 131,
}
Expand description
Pixel format used in input image
Variants§
RGB555 = 1
15bpp
RGB565 = 2
16bpp
RGB888 = 3
24bpp
BGR555 = 4
15bpp
BGR565 = 5
16bpp
BGR888 = 6
24bpp
ARGB8888 = 16
32bpp
RGBA8888 = 17
32bpp
ABGR8888 = 18
32bpp
BGRA8888 = 19
32bpp
G1 = 64
1bpp grayscale
G2 = 65
2bpp grayscale
G4 = 66
4bpp grayscale
G8 = 67
8bpp grayscale
AG88 = 83
16bpp grayscale with alpha
GA88 = 99
16bpp grayscale with alpha
Pal1 = 128
1bpp palette
Pal2 = 129
2bpp palette
Pal4 = 130
4bpp palette
Pal8 = 131
8bpp palette
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PixelFormat
impl Debug for PixelFormat
Source§impl Hash for PixelFormat
impl Hash for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
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