Table of Contents

Enum EdgeDetectionProperty

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Identifiers for properties of the Edge Detection effect.

public enum EdgeDetectionProperty

Fields

AlphaMode = 4

The D2D1_EDGEDETECTION_PROP_ALPHA_MODE property is a AlphaMode 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.

BlurRadius = 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).

Mode = 2

The D2D1_EDGEDETECTION_PROP_MODE property is a EdgeDetectionMode enumeration value which mode to use for edge detection. The default value is D2D1_EDGEDETECTION_MODE_SOBEL.

OverlayEdges = 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.

Strength = 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.