---
title: "Class AlphaContourExtractor | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ImageProcessing.Services.RasterServices/AlphaContourExtractor/"
---

# Class AlphaContourExtractor

> **Inheritance:** `System.Object` -> AlphaContourExtractor

###### **Namespace**: [Aurigma.DesignAtoms.ImageProcessing.Services.RasterServices](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ImageProcessing.Services.RasterServices.md)

###### **Assembly**: Aurigma.DesignAtoms.ImageProcessing.dll

```csharp title="Syntax"
public class AlphaContourExtractor
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### AlphaContourExtractor

```csharp
public AlphaContourExtractor()
```

## Methods

### ExtractImageContour

```csharp
public Path ExtractImageContour(Bitmap sourceBitmap)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Bitmap` | *sourceBitmap* |  |

##### Returns

`Aurigma.GraphicsMill.AdvancedDrawing.Path`

### GetImageAlphaContour

```csharp
public Path GetImageAlphaContour(Bitmap sourceBitmap, bool extractBackground)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Bitmap` | *sourceBitmap* |  |
| `System.Boolean` | *extractBackground* |  |

##### Returns

`Aurigma.GraphicsMill.AdvancedDrawing.Path`

### PrepareCounterMask

```csharp
public bool[, ] PrepareCounterMask(Path contour, Bitmap sourceBitmap)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.AdvancedDrawing.Path` | *contour* |  |
| `Aurigma.GraphicsMill.Bitmap` | *sourceBitmap* |  |

##### Returns

`System.Boolean[,]`
