Enum tiny_skia::BlendMode [−][src]
pub enum BlendMode {
Show 29 variants
Clear,
Source,
Destination,
SourceOver,
DestinationOver,
SourceIn,
DestinationIn,
SourceOut,
DestinationOut,
SourceAtop,
DestinationAtop,
Xor,
Plus,
Modulate,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Multiply,
Hue,
Saturation,
Color,
Luminosity,
}
Expand description
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations
Mutably borrows from an owned value. Read more