---
title: "Path.GetOuterContours Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Path_GetOuterContours.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.GetOuterContours Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Returns a path that contains only the outer boundaries of this path.
 
**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 Path GetOuterContours()
```
 
### Return Value
A new [Path](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md) object without the holes and without anything inside the holes.
 
## Remarks
 The [NonZero](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_FillingRule.htm.md) filling rule defines the regions.
 
## Examples
  
```csharp
// A ring with a small circle inside its hole.
var ring = Path.Subtract(Path.Ellipse(15, 15, 120, 120), Path.Ellipse(40, 40, 70, 70));
var path = Path.Union(ring, Path.Ellipse(60, 60, 30, 30));

// Drop the hole and the circle inside it.
var outer = path.GetOuterContours();
```
 
The original path and its outer contours.
 ![The original path and its outer contours.](https://www.graphicsmill.com/docs/gm/PathGetOuterContours.png)
   
## See Also

### Reference

- [Path Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md)
- [GetOuterContours Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_Path_GetOuterContours.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)
