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

# Class PixelExtractor

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

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

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

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

## 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

### PixelExtractor

```csharp
public PixelExtractor()
```

## Methods

### ExtractPixels

```csharp
public Dictionary<Color, int> ExtractPixels(Bitmap bitmap)
```

##### Parameters

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

##### Returns

`System.Collections.Generic.Dictionary<Aurigma.GraphicsMill.Color,System.Int32>`

### MapPixelsInPlace

```csharp
public void MapPixelsInPlace(Bitmap bitmap, Func<Color, Color> colorMapper)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Bitmap` | *bitmap* |  |
| `System.Func<Aurigma.GraphicsMill.Color,Aurigma.GraphicsMill.Color>` | *colorMapper* |  |

### ForEachPixel

```csharp
public void ForEachPixel(Bitmap bitmap, Action<int, int, Color> pixelAction)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Bitmap` | *bitmap* |  |
| `System.Action<System.Int32,System.Int32,Aurigma.GraphicsMill.Color>` | *pixelAction* |  |

### EnsureStandardFormat

```csharp
public Bitmap EnsureStandardFormat(Bitmap bitmap)
```

##### Parameters

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

##### Returns

`Aurigma.GraphicsMill.Bitmap`
