D2D1_HIGHLIGHTSANDSHADOWS_PROP enumeration

Identifiers for properties of the Highlights and Shadows effect.

Syntax


typedef enum D2D1_HIGHLIGHTSANDSHADOWS_PROP { 
  D2D1_HIGHLIGHTSANDSHADOWS_PROP_HIGHLIGHTS        = 0,
  D2D1_HIGHLIGHTSANDSHADOWS_PROP_SHADOWS           = 1,
  D2D1_HIGHLIGHTSANDSHADOWS_PROP_CLARITY           = 2,
  D2D1_HIGHLIGHTSANDSHADOWS_PROP_INPUT_GAMMA       = 3,
  D2D1_HIGHLIGHTSANDSHADOWS_PROP_MASK_BLUR_RADIUS  = 4
} D2D1_HIGHLIGHTSANDSHADOWS_PROP;

Constants

D2D1_HIGHLIGHTSANDSHADOWS_PROP_HIGHLIGHTS

The D2D1_HIGHLIGHTSANDSHADOWS_PROP_HIGHLIGHTS property is a float value indicating how much to increase or decrease highlights. The allowed range is -1.0 to 1.0. The default value is 0.0.

D2D1_HIGHLIGHTSANDSHADOWS_PROP_SHADOWS

The D2D1_HIGHLIGHTSANDSHADOWS_PROP_SHADOWS property is a float value indicating how much to increase or decrease shadows. The allowed range is -1.0 to 1.0. The default value is 0.0.

D2D1_HIGHLIGHTSANDSHADOWS_PROP_CLARITY

The D2D1_HIGHLIGHTSANDSHADOWS_PROP_CLARITY property is a float value indicating how much to increase or decrease clarity. The allowed range is -1.0 to 1.0. The default value is 0.0.

D2D1_HIGHLIGHTSANDSHADOWS_PROP_INPUT_GAMMA

The D2D1_HIGHLIGHTSANDSHADOWS_PROP_INPUT_GAMMA property is a D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA enumeration value indicating the gamma of the input image. The Highlights and Shadows effect works in linear gamma space, so if the input image is know to be linear, the D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA_LINEAR value should be used to prevent sRGB to linear conversions from being performed.

D2D1_HIGHLIGHTSANDSHADOWS_PROP_MASK_BLUR_RADIUS

The D2D1_HIGHLIGHTSANDSHADOWS_PROP_MASK_BLUR_RADIUS property is a float value controlling the size of the region used around a pixel to classify the pixel as highlight or shadow. Lower values result in more localized adjustments. The allowed range is 0.0 to 10.0. The default value is 1.25.

Requirements

Header

D2d1effects_2.h

 

 

Show: