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

# Class TextRenderer

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

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

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

```csharp title="Syntax"
public class TextRenderer : ITextRenderer
```

## Implements

* [Aurigma.DesignAtoms.Canvas.ITextRenderer](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/ITextRenderer.md)

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

### TextRenderer

```csharp
public TextRenderer(IFileCache fileCache, IFontService fontService, IColorManagement colorManagement)
```

## Methods

### RenderToFile

```csharp
public string RenderToFile(BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.ItemHandlers/BaseTextItemHandler.md) | *itemHandler* |  |
| `System.Single` | *dpi* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |

##### Returns

`System.String`

### RenderToStreamAndFile

```csharp
public string RenderToStreamAndFile(Stream stream, BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, bool removeColorProfile = false)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.IO.Stream` | *stream* |  |
| [Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.ItemHandlers/BaseTextItemHandler.md) | *itemHandler* |  |
| `System.Single` | *dpi* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |
| `System.Nullable<System.Boolean>` | *textCropped* |  |
| `System.Boolean` | *removeColorProfile* |  |

##### Returns

`System.String`

### RenderToStream

```csharp
public void RenderToStream(Stream stream, BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, bool removeColorProfile = false)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.IO.Stream` | *stream* |  |
| [Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.ItemHandlers/BaseTextItemHandler.md) | *itemHandler* |  |
| `System.Single` | *dpi* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |
| `System.Nullable<System.Boolean>` | *textCropped* |  |
| `System.Boolean` | *removeColorProfile* |  |

### RenderToFile

```csharp
public string RenderToFile(BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, bool removeColorProfile = false)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.ItemHandlers/BaseTextItemHandler.md) | *itemHandler* |  |
| `System.Single` | *dpi* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |
| `System.Nullable<System.Boolean>` | *textCropped* |  |
| `System.Boolean` | *removeColorProfile* |  |

##### Returns

`System.String`

### RenderToBitmap

```csharp
public Bitmap RenderToBitmap(BaseTextItemHandler itemHandler, float dpi, bool removeColorProfile, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, out string cacheFileId)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.ItemHandlers/BaseTextItemHandler.md) | *itemHandler* |  |
| `System.Single` | *dpi* |  |
| `System.Boolean` | *removeColorProfile* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |
| `System.Nullable<System.Boolean>` | *textCropped* |  |
| `System.String` | *cacheFileId* |  |

##### Returns

`Aurigma.GraphicsMill.Bitmap`

### GetTextBitmap

```csharp
public Bitmap GetTextBitmap(BaseTextItemHandler itemHandler, float dpi, Point location, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool extendBitmap = false)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.ItemHandlers/BaseTextItemHandler.md) | *itemHandler* |  |
| `System.Single` | *dpi* |  |
| `System.Drawing.Point` | *location* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |
| `System.Boolean` | *extendBitmap* |  |

##### Returns

`Aurigma.GraphicsMill.Bitmap`
