Vixen
dd8b0a81
csharp
public enum UiBlendMode

How a composited group's result is mixed with the picture already under it.

Read the guide page for this →

Remarks

CSS Compositing 1 § 5.1's sixteen modes, in the specification's own order, which is also the order UtilityFamilies registers the classes in.

⚠ Normal is zero and is the only value that changes nothing, which is the bargain Blur states for its own default: a consumer that ignores this composites the group source-over, which is the picture the frame would have had without the declaration rather than a wrong one.

Fields and properties (16)

  • Normal

    Source-over: the group replaces what is under it, in proportion to its alpha.

  • Multiply

    The product. Darkens, and white is the identity.

  • Screen

    The complement of the product of the complements. Lightens, and black is the identity.

  • Overlay

    HardLight with the operands the other way round.

  • Darken

    The darker of the two, per channel.

  • Lighten

    The lighter of the two, per channel.

  • ColorDodge

    Brightens the backdrop to reflect the source.

  • ColorBurn

    Darkens the backdrop to reflect the source.

  • HardLight

    Multiply below a half and Screen above it.

  • SoftLight

    HardLight's shape with a softer knee, so it cannot clip to black or white.

  • Difference

    The absolute difference.

  • Exclusion

    Difference with a lower contrast.

  • Hue

    The source's hue over the backdrop's saturation and luminosity.

  • Saturation

    The source's saturation over the backdrop's hue and luminosity.

  • Color

    The source's hue and saturation over the backdrop's luminosity.

  • Luminosity

    The source's luminosity over the backdrop's hue and saturation.

Used by (11)

  • DrawCommandVixen.Ui
  • DrawListBuilderVixen.Ui
  • FrameVixen.Ui.Testing
  • MixBlendModeLuminanceTestsVixen.Ui.Controls.Tests
  • MixBlendModeTestsVixen.Ui.Controls.Tests
  • OpeningVixen.Ui
  • SoftwareUiRasterizerVixen.Ui.Testing
  • UiBlendVixen.Ui
  • UiCompositingTestsVixen.Graphics.Golden.Tests
  • UiLayerVixen.Ui
  • UiRendererVixen.Ui.Renderer