Struct lcms2::CIEXYZ
[−]
#[repr(C)]pub struct CIEXYZ { pub X: f64, pub Y: f64, pub Z: f64, }
Fields
X: f64
Y: f64
Z: f64
Methods
impl CIEXYZ
Trait Implementations
impl Default for CIEXYZ
impl PartialEq<CIEXYZ> for CIEXYZ
fn eq(&self, __arg_0: &CIEXYZ) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CIEXYZ) -> bool
This method tests for !=
.
impl Copy for CIEXYZ
impl Debug for CIEXYZ
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<CIExyY> for CIEXYZ
impl From<CIEXYZ> for CIExyY
impl Clone for CIEXYZ
fn clone(&self) -> CIEXYZ
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl CIEXYZExt for CIEXYZ
[src]
fn adapt_to_illuminant(
&self,
source_white_point: &CIEXYZ,
illuminant: &CIEXYZ
) -> Option<CIEXYZ>
[src]
&self,
source_white_point: &CIEXYZ,
illuminant: &CIEXYZ
) -> Option<CIEXYZ>
Adapts a color to a given illuminant. Original color is expected to have a source_white_point
white point. Read more
fn to_lab(&self, white_point: &CIEXYZ) -> CIELab
[src]
Colorimetric space conversion.
fn from_encoded(icc: &[u16; 3]) -> Self
[src]
Decodes a XYZ value, encoded on ICC convention