D2D1_COLORMATRIX_PROP enumeration (d2d1effects.h)

Identifiers for the properties of the Color matrix effect.

Syntax

typedef enum D2D1_COLORMATRIX_PROP {
  D2D1_COLORMATRIX_PROP_COLOR_MATRIX = 0,
  D2D1_COLORMATRIX_PROP_ALPHA_MODE = 1,
  D2D1_COLORMATRIX_PROP_CLAMP_OUTPUT = 2,
  D2D1_COLORMATRIX_PROP_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_COLORMATRIX_PROP_COLOR_MATRIX
Value: 0
A 5x4 matrix of float values. The elements in the matrix are not bounded and are unitless.


The type is D2D1_MATRIX_5X4_F.

The default value is the identity matrix, Matrix5x4F(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0).
D2D1_COLORMATRIX_PROP_ALPHA_MODE
Value: 1
The alpha mode of the output.


The type is D2D1_COLORMATRIX_ALPHA_MODE.

The default value is D2D1_COLORMATRIX_ALPHA_MODE_PREMULTIPLIED.
D2D1_COLORMATRIX_PROP_CLAMP_OUTPUT
Value: 2
Whether the effect clamps color values to between 0 and 1 before the effect passes the values to the next effect in the graph.
The effect clamps the values before it premultiplies the alpha.


If you set this to TRUE the effect will clamp the values. If you set this to FALSE, the effect will not clamp the color values,
but other effects and the output surface may clamp the values if they are not of high enough precision.

The type is BOOL.

The default value is FALSE.
D2D1_COLORMATRIX_PROP_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects.h