D2D1_BLEND_MODE enumeration
The blend mode used for the Blend effect.
Syntax
typedef enum D2D1_BLEND_MODE { D2D1_BLEND_MODE_MULTIPLY = 0, D2D1_BLEND_MODE_SCREEN = 1, D2D1_BLEND_MODE_DARKEN = 2, D2D1_BLEND_MODE_LIGHTEN = 3, D2D1_BLEND_MODE_DISSOLVE = 4, D2D1_BLEND_MODE_COLOR_BURN = 5, D2D1_BLEND_MODE_LINEAR_BURN = 6, D2D1_BLEND_MODE_DARKER_COLOR = 7, D2D1_BLEND_MODE_LIGHTER_COLOR = 8, D2D1_BLEND_MODE_COLOR_DODGE = 9, D2D1_BLEND_MODE_LINEAR_DODGE = 10, D2D1_BLEND_MODE_OVERLAY = 11, D2D1_BLEND_MODE_SOFT_LIGHT = 12, D2D1_BLEND_MODE_HARD_LIGHT = 13, D2D1_BLEND_MODE_VIVID_LIGHT = 14, D2D1_BLEND_MODE_LINEAR_LIGHT = 15, D2D1_BLEND_MODE_PIN_LIGHT = 16, D2D1_BLEND_MODE_HARD_MIX = 17, D2D1_BLEND_MODE_DIFFERENCE = 18, D2D1_BLEND_MODE_EXCLUSION = 19, D2D1_BLEND_MODE_HUE = 20, D2D1_BLEND_MODE_SATURATION = 21, D2D1_BLEND_MODE_COLOR = 22, D2D1_BLEND_MODE_LUMINOSITY = 23, D2D1_BLEND_MODE_SUBTRACT = 24, D2D1_BLEND_MODE_DIVISION = 25 } D2D1_BLEND_MODE;
Constants
- D2D1_BLEND_MODE_MULTIPLY
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_SCREEN
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_DARKEN
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_LIGHTEN
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_DISSOLVE
-
Given:
- A scene coordinate XY for the current pixel
- A deterministic pseudo-random number generator rand(XY) based on seed coordinate XY, with unbiased distribution of values from [0, 1]

- D2D1_BLEND_MODE_COLOR_BURN
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_LINEAR_BURN
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_DARKER_COLOR
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_LIGHTER_COLOR
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_COLOR_DODGE
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_LINEAR_DODGE
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_OVERLAY
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_SOFT_LIGHT
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_HARD_LIGHT
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_VIVID_LIGHT
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_LINEAR_LIGHT
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_PIN_LIGHT
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_HARD_MIX
-
Basic blend formulas with f(FRGB, BRGB) =

- D2D1_BLEND_MODE_DIFFERENCE
-
Basic blend formulas with f(FRGB, BRGB) = abs(FRGB - BRGB)
- D2D1_BLEND_MODE_EXCLUSION
-
Basic blend formulas with f(FRGB, BRGB) = FRGB + BRGB – 2 * FRGB * BRGB
- D2D1_BLEND_MODE_HUE
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_SATURATION
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_COLOR
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_LUMINOSITY
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_SUBTRACT
-
Basic blend formula for alpha only.

- D2D1_BLEND_MODE_DIVISION
-
Basic blend formula for alpha only.

Requirements
|
Header |
|
|---|