Enum png::SrgbRenderingIntent
source · #[repr(u8)]pub enum SrgbRenderingIntent {
Perceptual,
RelativeColorimetric,
Saturation,
AbsoluteColorimetric,
}
Expand description
The rendering intent for an sRGB image.
Presence of this data also indicates that the image conforms to the sRGB color space.
Variants§
Perceptual
For images preferring good adaptation to the output device gamut at the expense of colorimetric accuracy, such as photographs.
RelativeColorimetric
For images requiring colour appearance matching (relative to the output device white point), such as logos.
Saturation
For images preferring preservation of saturation at the expense of hue and lightness, such as charts and graphs.
AbsoluteColorimetric
For images requiring preservation of absolute colorimetry, such as previews of images destined for a different output device (proofs).
Implementations§
Trait Implementations§
source§impl Clone for SrgbRenderingIntent
impl Clone for SrgbRenderingIntent
source§fn clone(&self) -> SrgbRenderingIntent
fn clone(&self) -> SrgbRenderingIntent
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 SrgbRenderingIntent
impl Debug for SrgbRenderingIntent
source§impl PartialEq<SrgbRenderingIntent> for SrgbRenderingIntent
impl PartialEq<SrgbRenderingIntent> for SrgbRenderingIntent
source§fn eq(&self, other: &SrgbRenderingIntent) -> bool
fn eq(&self, other: &SrgbRenderingIntent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SrgbRenderingIntent
impl Eq for SrgbRenderingIntent
impl StructuralEq for SrgbRenderingIntent
impl StructuralPartialEq for SrgbRenderingIntent
Auto Trait Implementations§
impl RefUnwindSafe for SrgbRenderingIntent
impl Send for SrgbRenderingIntent
impl Sync for SrgbRenderingIntent
impl Unpin for SrgbRenderingIntent
impl UnwindSafe for SrgbRenderingIntent
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