---
title: "CustomFormatWriter..::.GetSupportedPixelFormats Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatWriter_GetSupportedPixelFormats.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.GetSupportedPixelFormats Method 
 
Returns an array of supported pixel formats.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Protected Friend MustOverride Function GetSupportedPixelFormats As PixelFormat()
```
 
```csharp
protected internal abstract PixelFormat[] GetSupportedPixelFormats()
```
 
### Return Value
Array of pixel formats supported by this writer.
 
## Examples
  
```csharp
protected override PixelFormat[] GetSupportedPixelFormats()
{
    return new 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)
