pub struct Profile { /* private fields */ }
Expand description
A color profile
Implementations§
source§impl Profile
impl Profile
pub fn new_rgb_with_table( white_point: qcms_CIE_xyY, primaries: qcms_CIE_xyYTRIPLE, table: &[u16] ) -> Option<Box<Profile>>
pub fn new_sRGB() -> Box<Profile>
sourcepub fn new_XYZD50() -> Box<Profile>
pub fn new_XYZD50() -> Box<Profile>
Create a new profile with D50 adopted white and identity transform functions
pub fn new_cicp( cp: ColourPrimaries, tc: TransferCharacteristics ) -> Option<Box<Profile>>
pub fn new_gray_with_gamma(gamma: f32) -> Box<Profile>
pub fn new_rgb_with_gamma_set( white_point: qcms_CIE_xyY, primaries: qcms_CIE_xyYTRIPLE, redGamma: f32, greenGamma: f32, blueGamma: f32 ) -> Option<Box<Profile>>
pub fn new_from_path(file: &str) -> Option<Box<Profile>>
pub fn new_from_slice(mem: &[u8], curves_only: bool) -> Option<Box<Profile>>
sourcepub fn precache_output_transform(&mut self)
pub fn precache_output_transform(&mut self)
Precomputes the information needed for this profile to be
used as the output profile when constructing a Transform
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more