pub enum MaskType {
Alpha,
Luminance,
}
Expand description
A mask type.
Variants§
Alpha
Transfers only the Alpha channel from Pixmap
to Mask
.
Luminance
Transfers RGB channels as luminance from Pixmap
to Mask
.
Formula: Y = 0.2126 * R + 0.7152 * G + 0.0722 * B
Trait Implementations§
source§impl PartialEq for MaskType
impl PartialEq for MaskType
impl Copy for MaskType
impl StructuralPartialEq for MaskType
Auto Trait Implementations§
impl RefUnwindSafe for MaskType
impl Send for MaskType
impl Sync for MaskType
impl Unpin for MaskType
impl UnwindSafe for MaskType
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