[−][src]Trait prisma::color_space::ConvertFromXyz
An object that can convert a color out of XYZ
Associated Types
type OutputColor: TranscodableColor
The color type converted to.
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
Provided methods
fn convert_from_xyz(
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self>
&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>
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self>
Convert color
out of the XYZ space, using a linear encoding
Implementors
impl<T> ConvertFromXyz<T, Alpha<T, Xyz<T>>> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
type OutputColor = Rgba<T>
fn convert_from_xyz_raw(&self, color: &Xyza<T>) -> Rgba<T>
[src]
impl<T> ConvertFromXyz<T, Xyz<T>> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
type OutputColor = Rgb<T>
fn convert_from_xyz_raw(&self, color: &Xyz<T>) -> Rgb<T>
[src]
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]
T: PosNormalChannelScalar + FreeChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
E: ColorEncoding + PartialEq + Clone,