---
title: "Path.GetContour Method (Pipeline, Channel, Single)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Path_GetContour_3_459c6afd.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# Path.GetContour Method (Pipeline, Channel, Single)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Gets the contour of the region where the specified channel of an image produced by a pipeline reaches the specified level.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static Path GetContour(Pipeline pipeline,Channel channel,float level
)
```
 
### Parameters
 
 - pipeline
     - Type: [Aurigma.GraphicsMill.Pipeline](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Pipeline.htm.md)
A pipeline that produces the image to find the contour in.

 - channel
     - Type: [Aurigma.GraphicsMill.Channel](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Channel.htm.md)
The channel to trace.

 - level
     - Type: System.Single
The level as a fraction of the largest channel value, greater than `0` and not greater than `1`.
 
### Return Value
A [Path](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md) object that contains one closed subpath for each outer boundary and each hole. It is empty (never `null`) when no pixel reaches the level.
 
## Remarks
 See the [GetContour(Bitmap, Channel, Single)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Path_GetContour_3_aed77fd4.htm.md) overload for details.
 
## Exceptions
  
|  Exception |  Condition |
| --- | --- |
 |  System.ArgumentNullException |  The pipeline is `null`. |
 |  System.ArgumentOutOfRangeException |  The channel is not defined, or the level is out of range. |
   
## See Also

### Reference

- [Path Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md)
- [GetContour Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_Path_GetContour.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)

### Manual

- [Working with Paths](https://www.graphicsmill.com/docs/gm/working-with-path.htm.md)
