Enum SrgbRenderingIntent
#[repr(u8)]
pub enum SrgbRenderingIntent
The rendering intent for an sRGB image.
Presence of this data also indicates that the image conforms to the sRGB color space.
Variants
-
Perceptual = 0 For images preferring good adaptation to the output device gamut at the expense of colorimetric accuracy, such as photographs.
-
RelativeColorimetric = 1 For images requiring colour appearance matching (relative to the output device white point), such as logos.
-
Saturation = 2 For images preferring preservation of saturation at the expense of hue and lightness, such as charts and graphs.
-
AbsoluteColorimetric = 3 For images requiring preservation of absolute colorimetry, such as previews of images destined for a different output device (proofs).
Implementations
impl SrgbRenderingIntent
fn encode<W: Write>(self, w: &mut W) -> Result<(), EncodingError>
Trait Implementations
impl Clone for SrgbRenderingIntent
fn clone(&self) -> Self
impl Copy for SrgbRenderingIntent
impl Debug for SrgbRenderingIntent
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for SrgbRenderingIntent
impl PartialEq for SrgbRenderingIntent
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for SrgbRenderingIntent
Auto Trait Implementations
impl Freeze for SrgbRenderingIntent
impl RefUnwindSafe for SrgbRenderingIntent
impl Send for SrgbRenderingIntent
impl Sync for SrgbRenderingIntent
impl Unpin for SrgbRenderingIntent
impl UnsafeUnpin for SrgbRenderingIntent
impl UnwindSafe for SrgbRenderingIntent
Blanket Implementations
impl<T> Any for SrgbRenderingIntent
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SrgbRenderingIntent
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SrgbRenderingIntent
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SrgbRenderingIntent
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SrgbRenderingIntent
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SrgbRenderingIntent
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for SrgbRenderingIntent
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SrgbRenderingIntent
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SrgbRenderingIntent
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>