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

# Class BarcodeGenerator

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

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

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

```csharp title="Syntax"
public class BarcodeGenerator : IBarcodeGenerator
```

## Implements

* [Aurigma.DesignAtoms.Services.IBarcodeGenerator](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Services/IBarcodeGenerator.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

### BarcodeGenerator

```csharp
public BarcodeGenerator(IFontService fontService, ISvgReaderFactory svgReaderFactory)
```

## Methods

### CreateBarcodeImage

```csharp
public Bitmap CreateBarcodeImage(string content, BarcodeFormat barcodeFormat, float dpi, int size)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *content* |  |
| `ZXing.BarcodeFormat` | *barcodeFormat* |  |
| `System.Single` | *dpi* |  |
| `System.Int32` | *size* |  |

##### Returns

`Aurigma.GraphicsMill.Bitmap`

### CreateBarcodeSampleImage

```csharp
public Bitmap CreateBarcodeSampleImage(BarcodeFormat barcodeFormat, float dpi, int size, string text, string postScriptName)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `ZXing.BarcodeFormat` | *barcodeFormat* |  |
| `System.Single` | *dpi* |  |
| `System.Int32` | *size* |  |
| `System.String` | *text* |  |
| `System.String` | *postScriptName* |  |

##### Returns

`Aurigma.GraphicsMill.Bitmap`
