---
UID: NE:d2d1effects_2.D2D1_EDGEDETECTION_MODE
title: D2D1_EDGEDETECTION_MODE (d2d1effects_2.h)
description: Values for the D2D1_EDGEDETECTION_PROP_MODE property of the Edge Detection effect.
old-location: direct2d\d2d1_edgedetection_mode.htm
tech.root: Direct2D
ms.assetid: 22C57518-8617-44F3-BC04-42605A77985C
ms.date: 12/05/2018
ms.keywords: D2D1_EDGEDETECTION_MODE, D2D1_EDGEDETECTION_MODE enumeration [Direct2D], D2D1_EDGEDETECTION_MODE_PREWITT, D2D1_EDGEDETECTION_MODE_SOBEL, d2d1effects_2/D2D1_EDGEDETECTION_MODE, d2d1effects_2/D2D1_EDGEDETECTION_MODE_PREWITT, d2d1effects_2/D2D1_EDGEDETECTION_MODE_SOBEL, direct2d.d2d1_edgedetection_mode
f1_keywords:
- d2d1effects_2/D2D1_EDGEDETECTION_MODE
dev_langs:
- c++
req.header: d2d1effects_2.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- HeaderDef
api_location:
- d2d1effects_2.h
api_name:
- D2D1_EDGEDETECTION_MODE
targetos: Windows
req.typenames: D2D1_EDGEDETECTION_MODE
req.redist: 
ms.custom: 19H1
---

# D2D1_EDGEDETECTION_MODE enumeration


## -description


Values for the <a href="https://docs.microsoft.com/windows/desktop/api/d2d1effects_2/ne-d2d1effects_2-d2d1_edgedetection_prop">D2D1_EDGEDETECTION_PROP_MODE</a> property of the <a href="https://docs.microsoft.com/windows/desktop/Direct2D/edge-detection-effect">Edge Detection effect</a>.


## -enum-fields




### -field D2D1_EDGEDETECTION_MODE_SOBEL

Indicates the Sobel operator should be used for edge detection.


### -field D2D1_EDGEDETECTION_MODE_PREWITT

Indicates the Prewitt operator should be used for edge detection.


### -field D2D1_EDGEDETECTION_MODE_FORCE_DWORD



