pub struct Space(_);
Implementations§
source§impl Space
impl Space
pub fn from_name(name: &str) -> Self
pub fn from_icc(icc_data: Vec<u8>, intent: IccIntent) -> Result<Self, Error>
pub fn from_chromaticities( name: &str, wx: f64, wy: f64, rx: f64, ry: f64, gx: f64, gy: f64, bx: f64, by: f64, trc_red: &Trc, trc_green: &Trc, trc_blue: &Trc, flags: SpaceFlags ) -> Self
pub fn from_rgbxyz_matrix( name: &str, wx: f64, wy: f64, wz: f64, rx: f64, gx: f64, bx: f64, ry: f64, gy: f64, by: f64, rz: f64, gz: f64, bz: f64, trc_red: &Trc, trc_green: &Trc, trc_blue: &Trc ) -> Self
pub fn with_trc(self, trc: &Trc) -> Self
pub fn gamma(&self) -> f64
pub fn rgb_luminance(&self) -> (f64, f64, f64)
pub fn is_cmyk(&self) -> bool
pub fn is_gray(&self) -> bool
pub fn get( &self, xw: &mut f64, yw: &mut f64, xr: &mut f64, yr: &mut f64, xg: &mut f64, yg: &mut f64, xb: &mut f64, yb: &mut f64, red_trc: &mut Trc, green_trc: &mut Trc, blue_trc: &mut Trc )
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Space
impl !Send for Space
impl !Sync for Space
impl Unpin for Space
impl UnwindSafe for Space
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