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
sourceimpl Clone for SrgbRenderingIntent
impl Clone for SrgbRenderingIntent
sourcefn clone(&self) -> SrgbRenderingIntent
fn clone(&self) -> SrgbRenderingIntent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SrgbRenderingIntent
impl Debug for SrgbRenderingIntent
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more