---
title: "CustomFormatWriter..::.IsPixelFormatSupported Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatWriter_IsPixelFormatSupported_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/)

# CustomFormatWriter.IsPixelFormatSupported Method 
 
Checks if the provided pixel format is supported.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overrides Function IsPixelFormatSupported ( _pixelFormat As PixelFormat _
) As Boolean
```
 
```csharp
public override bool IsPixelFormatSupported(PixelFormat pixelFormat
)
```
 
### Parameters
 
 - pixelFormat
     - 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 that specifies the pixel format you would like to verify.
 
### Return Value
 **true** if the writer can save bitmaps of the specified pixel formats without conversion to another pixel format; **false** otherwise.
 
### Implements
 
[IPixelFormatSupport.IsPixelFormatSupported(PixelFormat)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_IPixelFormatSupport_IsPixelFormatSupported_1_3e209c07.htm.md)
 
## Examples
  
```csharp
protected override bool IsPixelFormatSupported(PixelFormat pixelFormat)
{
    return (pixelFormat == PixelFormat.Format1bppIndexed);
}
```
   
## See Also

### Reference

- [CustomFormatWriter Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomFormatWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
