---
title: "Bitmap.PixelFormat Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_PixelFormat.htm
product: "Graphics Mill"
---

# Bitmap.PixelFormat Property 
 
Gets a pixel format of the current bitmap.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public override PixelFormat PixelFormat { get; }
```
 
### Property Value
A [PixelFormat](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PixelFormat.htm.md) of the current bitmap.
 
## Remarks
  
You can use the following properties to get more detailed information about current pixel format:
 
|  Property |  Description |
| --- | --- |
 |  **[ColorSpace](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_ColorSpace.htm.md)** |  Color space of pixels represented with current pixel format. |
 |  **[HasAlpha](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_HasAlpha.htm.md)** |  Whether current pixel format supports alpha channel (transparency information). |
 |  **[IsCmyk](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_IsCmyk.htm.md)** |  Whether color space of pixels represented with current pixel format is CMYK. |
 |  **[IsRgb](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_IsRgb.htm.md)** |  Whether color space of pixels represented with current pixel format is RGB. |
 |  **[IsGrayscale](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_IsGrayscale.htm.md)** |  Whether color space of pixels represented with current pixel format is grayscale. |
 |  **[IsExtended](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_IsExtended.htm.md)** |  Whether current pixel format is extended (16 bits per channel). |
 |  **[IsIndexed](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_PixelFormat_IsIndexed.htm.md)** |  Whether current pixel format is indexed (palette-based). |
 
## Examples
  
```csharp
Console.WriteLine("Bitmap: " + bitmap.Width + "x" + bitmap.Height);
Console.WriteLine("  Has Aplha: " + bitmap.HasAlpha);
Console.WriteLine("  PixelFormat: " + bitmap.PixelFormat.ToString());
Console.WriteLine("  CMYK: " + bitmap.PixelFormat.IsCmyk);
Console.WriteLine("  GrayScale: " + bitmap.PixelFormat.IsGrayscale);
Console.WriteLine("  RGB: " + bitmap.PixelFormat.IsRgb);
Console.WriteLine("  Indexed: " + bitmap.PixelFormat.IsIndexed);
Console.WriteLine("  Extended: " + bitmap.PixelFormat.IsExtended);
```
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
