---
title: "PixelFormatUtils..::.BitsPerPixel Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_PixelFormatUtils_BitsPerPixel_1_3e209c07.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# PixelFormatUtils.BitsPerPixel Method 
 
Returns number of bits per pixel for specified pixel format.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function BitsPerPixel ( _format As PixelFormat _
) As Integer
```
 
```csharp
public static int BitsPerPixel(PixelFormat format
)
```
 
### Parameters
 
 - format
     - Type: [Aurigma.GraphicsMill.PixelFormat](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md)
 [PixelFormat](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md) enumeration member to check.
 
### Return Value
Number of number of bits per pixel for specified pixel format.
   
## See Also

### Reference

- [PixelFormatUtils Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormatUtils.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
