## PixelDataFormat.GetGrayscale method

Gets Grayscale color with a specified number of bits per sample.

```csharp
public static PixelDataFormat GetGrayscale(int bitsPerSample)
```

| Parameter | Type | Description |
| --- | --- | --- |
| bitsPerSample | Int32 | The number of bits per sample. |

### Return Value

The Grayscale color.

### See Also

* class [PixelDataFormat](../)
* namespace [Aspose.Imaging](../../pixeldataformat/)
* assembly [Aspose.Imaging](../../../)


