Enum jxl_oxide::PixelFormat
source · pub enum PixelFormat {
Gray,
Graya,
Rgb,
Rgba,
Cmyk,
Cmyka,
}
Expand description
Pixel format of the rendered image.
Variants§
Gray
Grayscale, single channel
Graya
Grayscale with alpha, two channels
Rgb
RGB, three channels
Rgba
RGB with alpha, four channels
Cmyk
CMYK, four channels
Cmyka
CMYK with alpha, five channels
Implementations§
source§impl PixelFormat
impl PixelFormat
sourcepub fn is_grayscale(self) -> bool
pub fn is_grayscale(self) -> bool
Returns whether the image is grayscale.
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
source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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