D2D1_EDGEDETECTION_PROP enumeration (d2d1effects_2.h)

Identifiers for properties of the Edge Detection effect.

Syntax

typedef enum D2D1_EDGEDETECTION_PROP {
  D2D1_EDGEDETECTION_PROP_STRENGTH = 0,
  D2D1_EDGEDETECTION_PROP_BLUR_RADIUS = 1,
  D2D1_EDGEDETECTION_PROP_MODE = 2,
  D2D1_EDGEDETECTION_PROP_OVERLAY_EDGES = 3,
  D2D1_EDGEDETECTION_PROP_ALPHA_MODE = 4,
  D2D1_EDGEDETECTION_PROP_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_EDGEDETECTION_PROP_STRENGTH
Value: 0
The D2D1_EDGEDETECTION_PROP_STRENGTH property is a float value modulating the response of the edge detection filter. A low strength value means that weaker edges will get filtered out,
while a high value means stronger edges will get filtered out. The allowed range is 0.0 to 1.0. The default value is 0.5.
D2D1_EDGEDETECTION_PROP_BLUR_RADIUS
Value: 1
The D2D1_EDGEDETECTION_PROP_BLUR_RADIUS property is a float value specifying the amount of blur to apply. Applying blur is used to remove high frequencies and reduce phantom edges.
The allowed range is 0.0 to 10.0. The default value is 0.0 (no blur applied).
D2D1_EDGEDETECTION_PROP_MODE
Value: 2
The D2D1_EDGEDETECTION_PROP_MODE property is a D2D1_EDGEDETECTION_MODE enumeration value which mode to use for edge detection.
The default value is D2D1_EDGEDETECTION_MODE_SOBEL.
D2D1_EDGEDETECTION_PROP_OVERLAY_EDGES
Value: 3
The D2D1_EDGEDETECTION_PROP_OVERLAY_EDGES property is a boolean value. Edge detection only applies to the RGB channels, the alpha channel is ignored for purposes of detecting edges.
If D2D1_EDGEDETECTION_PROP_OVERLAY_EDGES is false, the output edges is fully opaque. If D2D1_EDGEDETECTION_PROP_OVERLAY_EDGES is true, the input opacity is preserved.
The default value is false.
D2D1_EDGEDETECTION_PROP_ALPHA_MODE
Value: 4
The D2D1_EDGEDETECTION_PROP_ALPHA_MODE property is a D2D1_ALPHA_MODE enumeration value indicating the alpha mode of the input file.
If the input is not opaque, this value is used to determine whether to unpremultiply the inputs.
See the About Alpha Modes section of the Supported Pixel Formats and Alpha Modes topic for additional information.

The default value is D2D1_ALPHA_MODE_PREMULTIPLIED.
D2D1_EDGEDETECTION_PROP_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects_2.h