D2D1_BLEND_MODE enumeration (d2d1effects.h)

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_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_BLEND_MODE_MULTIPLY
Value: 0
Basic blend formula for alpha only.

Mathematical formula for a multiply effect.
D2D1_BLEND_MODE_SCREEN
Value: 1
Basic blend formula for alpha only.

Mathematical formula for a screen effect.
D2D1_BLEND_MODE_DARKEN
Value: 2
Basic blend formula for alpha only.

mathematical formula for a darken effect.
D2D1_BLEND_MODE_LIGHTEN
Value: 3
Basic blend formula for alpha only.

Mathematical formula for a lighten effect.
D2D1_BLEND_MODE_DISSOLVE
Value: 4
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]


Mathematical formula for a dissolve blend effect.
D2D1_BLEND_MODE_COLOR_BURN
Value: 5
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a coor burn effect.
D2D1_BLEND_MODE_LINEAR_BURN
Value: 6
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a linear burn effect.
D2D1_BLEND_MODE_DARKER_COLOR
Value: 7
Basic blend formula for alpha only.

Mathematical formula for a darken color effect.
D2D1_BLEND_MODE_LIGHTER_COLOR
Value: 8
Basic blend formula for alpha only.

Mathematical formula for a lighter color effect.
D2D1_BLEND_MODE_COLOR_DODGE
Value: 9
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a color dodge effect.
D2D1_BLEND_MODE_LINEAR_DODGE
Value: 10
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a linear dodge effect.
D2D1_BLEND_MODE_OVERLAY
Value: 11
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for an overlay effect.
D2D1_BLEND_MODE_SOFT_LIGHT
Value: 12
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a soft light effect.
D2D1_BLEND_MODE_HARD_LIGHT
Value: 13
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a hard light effect.
D2D1_BLEND_MODE_VIVID_LIGHT
Value: 14
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a vivid light effect.
D2D1_BLEND_MODE_LINEAR_LIGHT
Value: 15
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a linear light effect.
D2D1_BLEND_MODE_PIN_LIGHT
Value: 16
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a pin light effect.
D2D1_BLEND_MODE_HARD_MIX
Value: 17
Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a hard mix effect.
D2D1_BLEND_MODE_DIFFERENCE
Value: 18
Basic blend formulas with f(FRGB, BRGB) = abs(FRGB - BRGB)
D2D1_BLEND_MODE_EXCLUSION
Value: 19
Basic blend formulas with f(FRGB, BRGB) = FRGB + BRGB – 2 * FRGB * BRGB
D2D1_BLEND_MODE_HUE
Value: 20
Basic blend formula for alpha only.

Mathematical formula for a hue blend effect.
D2D1_BLEND_MODE_SATURATION
Value: 21
Basic blend formula for alpha only.

Mathematical formula for a saturation blend effect.
D2D1_BLEND_MODE_COLOR
Value: 22
Basic blend formula for alpha only.

Mathematical formula for a color blend effect.
D2D1_BLEND_MODE_LUMINOSITY
Value: 23
Basic blend formula for alpha only.

Mathematical formula for a luminosity blend effect.
D2D1_BLEND_MODE_SUBTRACT
Value: 24
Basic blend formula for alpha only.

Mathematical formula for a subtract blend effect.
D2D1_BLEND_MODE_DIVISION
Value: 25
Basic blend formula for alpha only.

Mathematical formula for a division blend effect.
D2D1_BLEND_MODE_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects.h