---
title: "PixelDataFormat.GetBgr"
url: "https://reference.aspose.com/imaging/net/aspose.imaging/pixeldataformat/getbgr/"
product: "Aspose.Imaging for .NET API Reference"
description: "PixelDataFormat method. Gets BGR color with a specified number of bits per sample"
---

## PixelDataFormat.GetBgr method

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

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

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

### Return Value

The BGR color.

### See Also

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


