pub enum ShadingColorSpace {
DeviceGray,
DeviceRGB,
DeviceCMYK,
ICCBased {
n: u32,
profile_hash: ProfileHash,
profile_data: Arc<Vec<u8>>,
},
CalRGB {
white_point: [f64; 3],
matrix: Option<[f64; 9]>,
gamma: Option<[f64; 3]>,
},
CalGray {
white_point: [f64; 3],
gamma: Option<f64>,
},
}Expand description
Color space carried through the display list for native shading output.
Variants§
Implementations§
Source§impl ShadingColorSpace
impl ShadingColorSpace
Sourcepub fn num_components(&self) -> usize
pub fn num_components(&self) -> usize
Number of color components in this color space.
Trait Implementations§
Source§impl Clone for ShadingColorSpace
impl Clone for ShadingColorSpace
Source§fn clone(&self) -> ShadingColorSpace
fn clone(&self) -> ShadingColorSpace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShadingColorSpace
impl RefUnwindSafe for ShadingColorSpace
impl Send for ShadingColorSpace
impl Sync for ShadingColorSpace
impl Unpin for ShadingColorSpace
impl UnsafeUnpin for ShadingColorSpace
impl UnwindSafe for ShadingColorSpace
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