---
title: "ColorManagementProvider..::.PaletteEntryCount Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorManagementProvider_PaletteEntryCount.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/)

# ColorManagementProvider.PaletteEntryCount Property 
 
Gets/sets the maximum number of colors in palette that should be used when performing conversion to an indexed 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 Property PaletteEntryCount As Integer
```
 
```csharp
public int PaletteEntryCount { get; set; }
```
 
### Property Value
A value that specifies the maximum number of entries in palette used when performing conversion to an indexed pixel format. If this value is 0, the algorithm automatically uses the maximum possible value for the target pixel format (see the **Remarks** section).
 
## Remarks
  
When [DestinationPixelFormat](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_PixelFormatConverter_DestinationPixelFormat.htm.md) is [Format8bppIndexed](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md), this value should be equal or less 256. For the [Format4bppIndexed](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md) pixel format, 16 or less colors can be used. For [Format1bppIndexed](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md), only 2 colors can be specified.
 
If you specify more colors than the palette supports, an exception will be raised.
   
## See Also

### Reference

- [ColorManagementProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorManagementProvider.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
