pub enum PixelFormat {
Show 20 variants
A1R5G5B5,
A2B10G10R10,
A2R10G10B10,
A4L4,
A4R4G4B4,
A8,
A8B8G8R8,
A8L8,
A8R3G3B2,
A8R8G8B8,
G16R16,
L16,
L8,
R5G6B5,
R8G8B8,
Unknown,
X1R5G5B5,
X4R4G4B4,
X8B8G8R8,
X8R8G8B8,
}
Expand description
Convenience enum for storing common pixel formats
See here for more information about the common formats: https://msdn.microsoft.com/en-us/library/bb943991.aspx
Variants§
A1R5G5B5
A2B10G10R10
A2R10G10B10
A4L4
A4R4G4B4
A8
A8B8G8R8
A8L8
A8R3G3B2
A8R8G8B8
G16R16
L16
L8
R5G6B5
R8G8B8
Unknown
X1R5G5B5
X4R4G4B4
X8B8G8R8
X8R8G8B8
Trait Implementations§
Source§impl Debug for PixelFormat
impl Debug for PixelFormat
Source§impl Display for PixelFormat
impl Display for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq 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