D2D1_POSTERIZE_PROP enumeration (d2d1effects_2.h)

Identifiers for properties of the Posterize effect.

Syntax

typedef enum D2D1_POSTERIZE_PROP {
  D2D1_POSTERIZE_PROP_RED_VALUE_COUNT = 0,
  D2D1_POSTERIZE_PROP_GREEN_VALUE_COUNT = 1,
  D2D1_POSTERIZE_PROP_BLUE_VALUE_COUNT = 2,
  D2D1_POSTERIZE_PROP_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_POSTERIZE_PROP_RED_VALUE_COUNT
Value: 0
The D2D1_POSTERIZE_PROP_RED_VALUE_COUNT property is an integer value specifying how many evenly spaced steps to divide the red channel range of 0.0 to 1.0 into.
For example, a value of 4 generates a table with 4 steps, [0.0, 0.33, 0.67, 1.0]. The allowed range for this property is 2 to 16. The default value is 4.
D2D1_POSTERIZE_PROP_GREEN_VALUE_COUNT
Value: 1
The D2D1_POSTERIZE_PROP_GREEN_VALUE_COUNT property is an integer value specifying how many evenly spaced steps to divide the green channel range of 0.0 to 1.0 into.
For example, a value of 4 generates a table with 4 steps, [0.0, 0.33, 0.67, 1.0]. The allowed range for this property is 2 to 16. The default value is 4.
D2D1_POSTERIZE_PROP_BLUE_VALUE_COUNT
Value: 2
The D2D1_POSTERIZE_PROP_BLUE_VALUE_COUNT property is an integer value specifying how many evenly spaced steps to divide the blue channel range of 0.0 to 1.0 into.
For example, a value of 4 generates a table with 4 steps, [0.0, 0.33, 0.67, 1.0]. The allowed range for this property is 2 to 16. The default value is 4.
D2D1_POSTERIZE_PROP_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects_2.h