pub enum SoftMaskType {
None,
Alpha,
Luminosity,
}Expand description
Whether the group’s soft-mask channel is alpha-based or luminosity-based.
Variants§
None
Not a soft mask — group is composited normally.
Alpha
Soft mask based on the group’s alpha channel.
Luminosity
Soft mask based on the perceived luminance of the group’s RGB pixels.
Only meaningful for RGB (3-byte) groups. For all other pixel modes
extract_soft_mask falls back to the alpha plane.
Trait Implementations§
Source§impl Clone for SoftMaskType
impl Clone for SoftMaskType
Source§fn clone(&self) -> SoftMaskType
fn clone(&self) -> SoftMaskType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SoftMaskType
impl Debug for SoftMaskType
Source§impl PartialEq for SoftMaskType
impl PartialEq for SoftMaskType
Source§fn eq(&self, other: &SoftMaskType) -> bool
fn eq(&self, other: &SoftMaskType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SoftMaskType
impl Eq for SoftMaskType
impl StructuralPartialEq for SoftMaskType
Auto Trait Implementations§
impl Freeze for SoftMaskType
impl RefUnwindSafe for SoftMaskType
impl Send for SoftMaskType
impl Sync for SoftMaskType
impl Unpin for SoftMaskType
impl UnsafeUnpin for SoftMaskType
impl UnwindSafe for SoftMaskType
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