SkiaSharp.SKBlendMode Enumeration

Pre-defined blend modes.

Syntax

public enum SKBlendMode

Remarks

Porter Duff Compositing Operators - defined algebra of compositing. These operators control the results of mixing the four sub-pixel regions formed by the overlapping of graphical objects that have an alpha or pixel coverage channel/value.

Separable Blend Mode - each component of the result color is completely determined by the corresponding components of the constituent backdrop and source colors.

Non-Separable Blend Mode - considers all color components in combination as opposed to the separable ones that look at each component individually.

Members

Member NameDescription
ClearNo regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg)
ColorCreates a color with the hue and saturation of the source color and the luminosity of the backdrop color. [Non-Separable Blend Modes]
ColorBurnDarkens the backdrop color to reflect the source color. [Separable Blend Modes]
ColorDodgeBrightens the backdrop color to reflect the source color. [Separable Blend Modes]
DarkenSelects the darker of the backdrop and source colors. [Separable Blend Modes]
DifferenceSubtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes]
DstOnly the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg)
DstATopDestination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg)
DstInDestination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg)
DstOutDestination is placed, where it falls outside of the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-out.svg)
DstOverDestination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg)
ExclusionProduces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes]
HardLightMultiplies or screens the colors, depending on the source color value. [Separable Blend Modes]
HueCreates a color with the hue of the source color and the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes]
LightenSelects the lighter of the backdrop and source colors. [Separable Blend Modes]
LuminosityCreates a color with the luminosity of the source color and the hue and saturation of the backdrop color. [Non-Separable Blend Modes]
ModulateMultiplies all components (= alpha and color). [Separable Blend Modes]
MultiplyThe source color is multiplied by the destination color and replaces the destination [Separable Blend Modes]
OverlayMultiplies or screens the colors, depending on the backdrop color value. [Separable Blend Modes]
PlusDisplay the sum of the source image and destination image. [Porter Duff Compositing Operators]
SaturationCreates a color with the saturation of the source color and the hue and luminosity of the backdrop color. [Non-Separable Blend Modes]
ScreenMultiplies the complements of the backdrop and source color values, then complements the result. [Separable Blend Modes]
SoftLightDarkens or lightens the colors, depending on the source color value. [Separable Blend Modes]
SrcOnly the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg)
SrcATopSource which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg)
SrcInThe source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg)
SrcOutSource is placed, where it falls outside of the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-out.svg)
SrcOverSource is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg)
XorThe non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg)

Requirements

Namespace: SkiaSharp
Assembly: SkiaSharp (in SkiaSharp.dll)
Assembly Versions: 1.55.0.0, 1.56.0.0, 1.57.0.0, 1.58.0.0, 1.59.0.0

The members of SkiaSharp.SKBlendMode are listed below.

See Also: Enum

Public Fields

ClearSKBlendMode. No regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg)
ColorSKBlendMode. Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color. [Non-Separable Blend Modes]
ColorBurnSKBlendMode. Darkens the backdrop color to reflect the source color. [Separable Blend Modes]
ColorDodgeSKBlendMode. Brightens the backdrop color to reflect the source color. [Separable Blend Modes]
DarkenSKBlendMode. Selects the darker of the backdrop and source colors. [Separable Blend Modes]
DifferenceSKBlendMode. Subtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes]
DstSKBlendMode. Only the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg)
DstATopSKBlendMode. Destination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg)
DstInSKBlendMode. Destination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg)
DstOutSKBlendMode. Destination is placed, where it falls outside of the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-out.svg)
DstOverSKBlendMode. Destination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg)
ExclusionSKBlendMode. Produces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes]
HardLightSKBlendMode. Multiplies or screens the colors, depending on the source color value. [Separable Blend Modes]
HueSKBlendMode. Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes]
LightenSKBlendMode. Selects the lighter of the backdrop and source colors. [Separable Blend Modes]
LuminositySKBlendMode. Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color. [Non-Separable Blend Modes]
ModulateSKBlendMode. Multiplies all components (= alpha and color). [Separable Blend Modes]
MultiplySKBlendMode. The source color is multiplied by the destination color and replaces the destination [Separable Blend Modes]
OverlaySKBlendMode. Multiplies or screens the colors, depending on the backdrop color value. [Separable Blend Modes]
PlusSKBlendMode. Display the sum of the source image and destination image. [Porter Duff Compositing Operators]
SaturationSKBlendMode. Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color. [Non-Separable Blend Modes]
ScreenSKBlendMode. Multiplies the complements of the backdrop and source color values, then complements the result. [Separable Blend Modes]
SoftLightSKBlendMode. Darkens or lightens the colors, depending on the source color value. [Separable Blend Modes]
SrcSKBlendMode. Only the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg)
SrcATopSKBlendMode. Source which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg)
SrcInSKBlendMode. The source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg)
SrcOutSKBlendMode. Source is placed, where it falls outside of the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-out.svg)
SrcOverSKBlendMode. Source is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg)
XorSKBlendMode. The non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg)