---
title: "EdgeDetect Constructor (EdgeDetectMode)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_EdgeDetect_ctor_1_9a9c864c.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# EdgeDetect Constructor (EdgeDetectMode)
 
Creates and initializes new [EdgeDetect](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_EdgeDetect.htm.md) class instance. You can specify edge detector here.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _mode As EdgeDetectMode _
)
```
 
```csharp
public EdgeDetect(EdgeDetectMode mode
)
```
 
### Parameters
 
 - mode
     - Type: [Aurigma.GraphicsMill.Transforms.EdgeDetectMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_EdgeDetectMode.htm.md)
 [EdgeDetectMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_EdgeDetectMode.htm.md) value specifying edge detector. You can change this value later through [Mode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_EdgeDetect_Mode.htm.md) property.
   
## See Also

### Reference

- [EdgeDetect Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_EdgeDetect.htm.md)
- [EdgeDetect Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_EdgeDetect_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
