pub enum PixelFormat {
Custom(String),
Depth(u32),
Gray(u32),
Bgr(u32),
Rgb(u32),
Jpeg,
}Expand description
Pixel format type used to describe image pixels.
Arbitrary formats can be wrapped in the Custom variant. The other variants have values describing the depth of a whole pixel in bits.
Variants§
Custom(String)
Special type for application defined formats
Depth(u32)
Z buffers
Gray(u32)
Grayscale
Bgr(u32)
Blue, Green, Red
Rgb(u32)
Red, Green, Blue
Jpeg
JPEG compression
Implementations§
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 Display for PixelFormat
impl Display for PixelFormat
Source§impl Hash for PixelFormat
impl Hash for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq 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