D2D1_DISPLACEMENTMAP_PROP enumeration (d2d1effects.h)

Identifiers for properties of the Displacement map effect.

Syntax

typedef enum D2D1_DISPLACEMENTMAP_PROP {
  D2D1_DISPLACEMENTMAP_PROP_SCALE = 0,
  D2D1_DISPLACEMENTMAP_PROP_X_CHANNEL_SELECT = 1,
  D2D1_DISPLACEMENTMAP_PROP_Y_CHANNEL_SELECT = 2,
  D2D1_DISPLACEMENTMAP_PROP_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_DISPLACEMENTMAP_PROP_SCALE
Value: 0
Multiplies the intensity of the selected channel from the displacement image. The higher you set this property, the more the effect displaces the pixels.


The type is FLOAT.

The default value is 0.0f.
D2D1_DISPLACEMENTMAP_PROP_X_CHANNEL_SELECT
Value: 1
The effect extracts the intensity from this color channel and uses it to spatially displace the image in the X direction.


The type is D2D1_CHANNEL_SELECTOR.

The default value is D2D1_CHANNEL_SELECTOR_A
D2D1_DISPLACEMENTMAP_PROP_Y_CHANNEL_SELECT
Value: 2
The effect extracts the intensity from this color channel and uses it to spatially displace the image in the Y direction.


The type is D2D1_CHANNEL_SELECTOR.

The default value is D2D1_CHANNEL_SELECTOR_A
D2D1_DISPLACEMENTMAP_PROP_FORCE_DWORD
Value: 0xffffffff

Requirements

   
Header d2d1effects.h