pub struct CicpTransform { /* private fields */ }
Expand description
Apply to colors of the input color space to get output color values.
We do not support all possible Cicp color spaces, but when we support one then all builtin
Pixel
types can be converted with their respective components. This value is used to signify
that some particular combination is supported.
Implementations§
Source§impl CicpTransform
impl CicpTransform
Sourcepub fn new(from: Cicp, into: Cicp) -> Option<Self>
pub fn new(from: Cicp, into: Cicp) -> Option<Self>
Construct a transform between two color spaces.
Returns Some
if the transform is guaranteed to be supported by image
. Both color spaces
are well understood and can be expected to be supported in future versions. However, we do
not make guarantees about adjusting the rounding modes, accuracy, and exact numeric values
used in the transform. Also, out-of-gamut colors may be handled differently per API.
Returns None
if the transformation is not (yet) supported.
This is used with ConvertColorOptions
in
ImageBuffer::copy_from_color_space
,
DynamicImage::copy_from_color_space
.
Trait Implementations§
Source§impl Clone for CicpTransform
impl Clone for CicpTransform
Source§fn clone(&self) -> CicpTransform
fn clone(&self) -> CicpTransform
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more