D2D1_BITMAPSOURCE_ALPHA_MODE enumeration (d2d1effects.h)

Specifies the alpha mode of the output of the Bitmap source effect.

Syntax

typedef enum D2D1_BITMAPSOURCE_ALPHA_MODE {
  D2D1_BITMAPSOURCE_ALPHA_MODE_PREMULTIPLIED = 1,
  D2D1_BITMAPSOURCE_ALPHA_MODE_STRAIGHT = 2,
  D2D1_BITMAPSOURCE_ALPHA_MODE_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_BITMAPSOURCE_ALPHA_MODE_PREMULTIPLIED
Value: 1
The effect output uses premultiplied alpha.
D2D1_BITMAPSOURCE_ALPHA_MODE_STRAIGHT
Value: 2
The effect output uses straight alpha.
D2D1_BITMAPSOURCE_ALPHA_MODE_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects.h