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.

Mathematical formula for a mutiply effect.
D2D1_BLEND_MODE_SCREEN

Basic blend formula for alpha only.

Mathematical formula for a screen effect.
D2D1_BLEND_MODE_DARKEN

Basic blend formula for alpha only.

mathematical formula for a darken effect.
D2D1_BLEND_MODE_LIGHTEN

Basic blend formula for alpha only.

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

Mathematical formula for a dissolve blend effect.

D2D1_BLEND_MODE_COLOR_BURN

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a coor burn effect.
D2D1_BLEND_MODE_LINEAR_BURN

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a linear burn effect.
D2D1_BLEND_MODE_DARKER_COLOR

Basic blend formula for alpha only.

Mathematical formla for a darken color effect.
D2D1_BLEND_MODE_LIGHTER_COLOR

Basic blend formula for alpha only.

Mathematical formula for a lighter color effect.
D2D1_BLEND_MODE_COLOR_DODGE

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a color dodge effect.
D2D1_BLEND_MODE_LINEAR_DODGE

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a linear dodge effect.
D2D1_BLEND_MODE_OVERLAY

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for an overlay effect.
D2D1_BLEND_MODE_SOFT_LIGHT

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a soft light effect.
D2D1_BLEND_MODE_HARD_LIGHT

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a hard light effect.
D2D1_BLEND_MODE_VIVID_LIGHT

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a vivid light effect.
D2D1_BLEND_MODE_LINEAR_LIGHT

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a linear light effect.
D2D1_BLEND_MODE_PIN_LIGHT

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a pin light effect.
D2D1_BLEND_MODE_HARD_MIX

Basic blend formulas with f(FRGB, BRGB) =

Mathematical formula for a hard mix effect.
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.

Mathematical formula for a hue blend effect.
D2D1_BLEND_MODE_SATURATION

Basic blend formula for alpha only.

Mathematical formula for a sturation blend effect.
D2D1_BLEND_MODE_COLOR

Basic blend formula for alpha only.

Mathematical formula for a color blend effect.
D2D1_BLEND_MODE_LUMINOSITY

Basic blend formula for alpha only.

Mathematical formula for a luminosity blend effect.
D2D1_BLEND_MODE_SUBTRACT

Basic blend formula for alpha only.

Mathematical formula for a subtract blend effect.
D2D1_BLEND_MODE_DIVISION

Basic blend formula for alpha only.

Mathematical formula for a division blend effect.

Requirements

Header

D2d1effects.h

 

 

Show: