[][src]Trait prisma::color_space::ConvertFromXyz

pub trait ConvertFromXyz<T: Float, In>: ColorSpace<T> + Sized where
    In: Color
{ type OutputColor: TranscodableColor; fn convert_from_xyz_raw(&self, color: &In) -> Self::OutputColor; fn convert_from_xyz(
        &self,
        color: &In
    ) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self> { ... }
fn convert_from_xyz_linear(
        &self,
        color: &In
    ) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self> { ... } }

An object that can convert a color out of XYZ

Associated Types

type OutputColor: TranscodableColor

The color type converted to.

Loading content...

Required methods

fn convert_from_xyz_raw(&self, color: &In) -> Self::OutputColor

Convert color out of the XYZ space, returning a bare color without any wrappers

Loading content...

Provided methods

fn convert_from_xyz(
    &self,
    color: &In
) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self>

Convert color out of the XYZ space, using the color space's preferred encoding

fn convert_from_xyz_linear(
    &self,
    color: &In
) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self>

Convert color out of the XYZ space, using a linear encoding

Loading content...

Implementors

impl<T> ConvertFromXyz<T, Alpha<T, Xyz<T>>> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>, 
[src]

type OutputColor = Rgba<T>

impl<T> ConvertFromXyz<T, Xyz<T>> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>, 
[src]

type OutputColor = Rgb<T>

impl<T, E> ConvertFromXyz<T, Xyz<T>> for EncodedColorSpace<T, E> where
    T: PosNormalChannelScalar + FreeChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq + Clone
[src]

type OutputColor = Rgb<T>

Loading content...