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

# Class Colorizer

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

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

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

```csharp title="Syntax"
public class Colorizer : IDisposable
```

## Implements

* `System.IDisposable`

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

### Colorizer

```csharp
public Colorizer(Color targetColor, bool isUpscaleImages, ResizeInterpolationMode resizeInterpolationMode)
```

## Methods

### GetPipelineElements

```csharp
public IEnumerable<PipelineElement> GetPipelineElements(Pipeline pipeline, double target, IList<IDisposable> disposables, CancellationToken cancellationToken = default(CancellationToken))
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Pipeline` | *pipeline* |  |
| `System.Double` | *target* |  |
| `System.Collections.Generic.IList<System.IDisposable>` | *disposables* |  |
| `System.Threading.CancellationToken` | *cancellationToken* |  |

##### Returns

`System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.PipelineElement>`

### ColorizeContainer

```csharp
public void ColorizeContainer(GraphicsContainer graphicsContainer, float dpi, double target = 0.45, CancellationToken cancellationToken = default(CancellationToken))
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.AdvancedDrawing.GraphicsContainer` | *graphicsContainer* |  |
| `System.Single` | *dpi* |  |
| `System.Double` | *target* |  |
| `System.Threading.CancellationToken` | *cancellationToken* |  |

### Dispose

```csharp
public void Dispose()
```
