Lire en anglais Modifier

Partager via


SKBlendMode Enum

Definition

Predefined blend modes.

public enum SKBlendMode
Inheritance
SKBlendMode

Fields

Name Value Description
Clear 0

No regions are enabled. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_clr.svg)

Src 1

Only the source will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src.svg)

Dst 2

Only the destination will be present. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst.svg)

SrcOver 3

Source is placed over the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-over.svg)

DstOver 4

Destination is placed over the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-over.svg)

SrcIn 5

The source that overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-in.svg)

DstIn 6

Destination which overlaps the source, replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-in.svg)

SrcOut 7

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)

DstOut 8

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)

SrcATop 9

Source which overlaps the destination, replaces the destination. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_src-atop.svg)

DstATop 10

Destination which overlaps the source replaces the source. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_dst-atop.svg)

Xor 11

The non-overlapping regions of source and destination are combined. [Porter Duff Compositing Operators] (https://drafts.fxtf.org/compositing-1/examples/PD_xor.svg)

Plus 12

Display the sum of the source image and destination image. [Porter Duff Compositing Operators]

Modulate 13

Multiplies all components (= alpha and color). [Separable Blend Modes]

Screen 14

Multiplies the complements of the backdrop and source color values, then complements the result. [Separable Blend Modes]

Overlay 15

Multiplies or screens the colors, depending on the backdrop color value. [Separable Blend Modes]

Darken 16

Selects the darker of the backdrop and source colors. [Separable Blend Modes]

Lighten 17

Selects the lighter of the backdrop and source colors. [Separable Blend Modes]

ColorDodge 18

Brightens the backdrop color to reflect the source color. [Separable Blend Modes]

ColorBurn 19

Darkens the backdrop color to reflect the source color. [Separable Blend Modes]

HardLight 20

Multiplies or screens the colors, depending on the source color value. [Separable Blend Modes]

SoftLight 21

Darkens or lightens the colors, depending on the source color value. [Separable Blend Modes]

Difference 22

Subtracts the darker of the two constituent colors from the lighter color. [Separable Blend Modes]

Exclusion 23

Produces an effect similar to that of the Difference mode but lower in contrast. [Separable Blend Modes]

Multiply 24

The source color is multiplied by the destination color and replaces the destination [Separable Blend Modes]

Hue 25

Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color. [Non-Separable Blend Modes]

Saturation 26

Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color. [Non-Separable Blend Modes]

Color 27

Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color. [Non-Separable Blend Modes]

Luminosity 28

Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color. [Non-Separable Blend Modes]

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.

Applies to