#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.