pub trait ColorManagementSystem {
// Required method
fn prepare_transform(
&self,
from_icc: &[u8],
to_icc: &[u8],
intent: RenderingIntent,
) -> Result<Box<dyn PreparedTransform>, Box<dyn Error + Sync + Send>>;
// Provided method
fn supports_linear_tf(&self) -> bool { ... }
}Expand description
Color management system that handles ICCv4 profiles.
Required Methods§
Sourcefn prepare_transform(
&self,
from_icc: &[u8],
to_icc: &[u8],
intent: RenderingIntent,
) -> Result<Box<dyn PreparedTransform>, Box<dyn Error + Sync + Send>>
fn prepare_transform( &self, from_icc: &[u8], to_icc: &[u8], intent: RenderingIntent, ) -> Result<Box<dyn PreparedTransform>, Box<dyn Error + Sync + Send>>
Prepares color transformation between two ICC profiles.
§Errors
This function will return an error if the internal CMS implementation returned an error.
Provided Methods§
Sourcefn supports_linear_tf(&self) -> bool
fn supports_linear_tf(&self) -> bool
Returns whether the CMS supports linear transfer function.
This method will return false if it doesn’t support (or it lacks precision to handle)
linear transfer function.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".