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

# Class BitmapExtensionMethods

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

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

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

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

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

### ToGrayscaleBitmap

```csharp
public static GrayscaleBitmap ToGrayscaleBitmap(this Bitmap bitmap)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Bitmap` | *bitmap* |  |

##### Returns

[Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.ColorGradient.Model.GrayscaleBitmap](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.ColorGradient.Model/GrayscaleBitmap.md)
