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

# Class MedianCutQuantizer

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

###### **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 MedianCutQuantizer
```

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

### MedianCutQuantizer

```csharp
public MedianCutQuantizer()
```

## Methods

### ReduceToPalette

```csharp
public List<Color> ReduceToPalette(Bitmap bitmap, Dictionary<Color, int> bitmapColors = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Bitmap` | *bitmap* |  |
| `System.Collections.Generic.Dictionary<Aurigma.GraphicsMill.Color,System.Int32>` | *bitmapColors* |  |

##### Returns

`System.Collections.Generic.List<Aurigma.GraphicsMill.Color>`
