pub enum MaskKind {
Luminance,
Alpha,
}Expand description
How to interpret a soft mask’s rasterised pixels as a coverage modulator.
Variants§
Luminance
Convert the mask’s RGB to luminance (ITU-R BT.709 coefficients
— Y = 0.2126·R + 0.7152·G + 0.0722·B) and use Y as the
per-pixel alpha multiplier. Matches SVG <mask> default
(mask-type="luminance") and PDF SMask /Luminosity.
Alpha
Use the mask’s own alpha channel as the multiplier. Matches
SVG <mask mask-type="alpha"> and PDF SMask /Alpha.
Trait Implementations§
impl Copy for MaskKind
impl Eq for MaskKind
impl StructuralPartialEq for MaskKind
Auto Trait Implementations§
impl Freeze for MaskKind
impl RefUnwindSafe for MaskKind
impl Send for MaskKind
impl Sync for MaskKind
impl Unpin for MaskKind
impl UnsafeUnpin for MaskKind
impl UnwindSafe for MaskKind
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