D2D1_DISPLACEMENTMAP_PROP enumeration

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;

Constants

D2D1_DISPLACEMENTMAP_PROP_SCALE

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

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

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

Requirements

Header

D2d1effects.h

 

 

Show: