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

# Class PixelFormatConverter

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

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

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

```csharp title="Syntax"
public static class PixelFormatConverter
```

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

## Methods

### ToGm

```csharp
public static PixelFormat ToGm(this PixelFormat source)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *source* |  |

##### Returns

`Aurigma.GraphicsMill.PixelFormat`

### ToModel

```csharp
public static PixelFormat ToModel(this PixelFormat source)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.PixelFormat` | *source* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md)

### GetColorSpace

```csharp
public static ColorSpace GetColorSpace(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Color.ColorSpace](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/ColorSpace.md)

### IsRgb

```csharp
public static bool IsRgb(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

`System.Boolean`

### IsCmyk

```csharp
public static bool IsCmyk(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

`System.Boolean`

### IsGrayscale

```csharp
public static bool IsGrayscale(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

`System.Boolean`

### IsIndexed

```csharp
public static bool IsIndexed(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

`System.Boolean`

### HasAlpha

```csharp
public static bool HasAlpha(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

`System.Boolean`

### AddAlpha

```csharp
public static PixelFormat AddAlpha(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md)

### DiscardAlpha

```csharp
public static PixelFormat DiscardAlpha(this PixelFormat pixelFormat)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md) | *pixelFormat* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Color.PixelFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/PixelFormat.md)
