[−][src]Enum tiny_skia::BlendMode
A blending mode.
Variants
Replaces destination with zero: fully transparent.
Replaces destination.
Preserves destination.
Source over destination.
Destination over source.
Source trimmed inside destination.
Destination trimmed by source.
Source trimmed outside destination.
Destination trimmed outside source.
Source inside destination blended with destination.
Destination inside source blended with source.
Each of source and destination trimmed outside the other.
Sum of colors.
Product of premultiplied colors; darkens destination.
Multiply inverse of pixels, inverting result; brightens destination.
Multiply or screen, depending on destination.
Darker of source and destination.
Lighter of source and destination.
Brighten destination to reflect source.
Darken destination to reflect source.
Multiply or screen, depending on source.
Lighten or darken, depending on source.
Subtract darker from lighter with higher contrast.
Subtract darker from lighter with lower contrast.
Multiply source with destination, darkening image.
hue of source with saturation and luminosity of destination
saturation of source with hue and luminosity of destination
. hue and saturation of source with luminosity of destination
luminosity of source with hue and saturation of destination
Trait Implementations
impl Clone for BlendMode
[src]
impl Copy for BlendMode
[src]
impl Debug for BlendMode
[src]
impl Default for BlendMode
[src]
impl Eq for BlendMode
[src]
impl Ord for BlendMode
[src]
fn cmp(&self, other: &BlendMode) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<BlendMode> for BlendMode
[src]
impl PartialOrd<BlendMode> for BlendMode
[src]
fn partial_cmp(&self, other: &BlendMode) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for BlendMode
[src]
impl StructuralPartialEq for BlendMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,