pub enum ImageColorSpace {
Gray,
Rgb,
RgbFromYCbCr,
Cmyk,
Unknown(u8),
}Expand description
An image color space.
Variants§
Gray
Grayscale color space.
Rgb
RGB color space.
RgbFromYCbCr
RGB produced by JPEG YCbCr→RGB decoding.
JPEG images stored with YCbCr encoding (Adobe APP14 transform=1 or
JFIF default) are converted to sRGB by the JPEG decoder using the
standard BT.601 matrix. The resulting RGB values are already in sRGB
colorimetry. Any PDF /ColorSpace entry that is not device-RGB (e.g.
an [ICCBased] printer profile) should be ignored for these images;
the JPEG decoder’s own colour model takes precedence, matching MuPDF
and Acrobat behaviour.
Cmyk
CMYK color space.
Unknown(u8)
An unknown color space.
Trait Implementations§
Source§impl Clone for ImageColorSpace
impl Clone for ImageColorSpace
Source§fn clone(&self) -> ImageColorSpace
fn clone(&self) -> ImageColorSpace
Returns a duplicate 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 ImageColorSpace
impl Debug for ImageColorSpace
impl Copy for ImageColorSpace
Auto Trait Implementations§
impl Freeze for ImageColorSpace
impl RefUnwindSafe for ImageColorSpace
impl Send for ImageColorSpace
impl Sync for ImageColorSpace
impl Unpin for ImageColorSpace
impl UnsafeUnpin for ImageColorSpace
impl UnwindSafe for ImageColorSpace
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