Struct CicpTransform
pub struct CicpTransform { /* private fields */ }
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
impl CicpTransform
fn new(from: Cicp, into: Cicp) -> Option<Self>Construct a transform between two color spaces.
Returns
Someif the transform is guaranteed to be supported byimage. 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
Noneif the transformation is not (yet) supported.This is used with [
ConvertColorOptions]crate::ConvertColorOptionsin [ImageBuffer::copy_from_color_space]crate::ImageBuffer::copy_from_color_space, [DynamicImage::copy_from_color_space]DynamicImage::copy_from_color_space.
Trait Implementations
impl Clone for CicpTransform
fn clone(&self) -> Self