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§
impl Copy for MaskType
impl StructuralPartialEq for MaskType
Auto Trait Implementations§
impl Freeze for MaskType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)