---
title: "ColorManagementProvider..::.ConvertToIndexed Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorManagementProvider_ConvertToIndexed_3_6c5df414.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.ConvertToIndexed Method 
 
Applies color reduction to indexed pixel formats.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub ConvertToIndexed ( _bpp As Integer, _paletteType As ColorPaletteType, _customPalette As ColorPalette _
)
```
 
```csharp
public void ConvertToIndexed(int bpp,ColorPaletteType paletteType,ColorPalette customPalette
)
```
 
### Parameters
 
 - bpp
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Value specifying necessary bits per pixel. Valid values are 1, 4, and 8.

 - paletteType
     - Type: [Aurigma.GraphicsMill.ColorPaletteType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPaletteType.htm.md)
 [ColorPaletteType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPaletteType.htm.md) value specifying how to generate palette.

 - customPalette
     - Type: [Aurigma.GraphicsMill.ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
 [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance which is used when *paletteType* is [Custom](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPaletteType.htm.md).
 
## Remarks
 If you use this overload, [FloydSteinberg](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_DitheringType.htm.md) dithering algorithm will be always used.
   
## 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)
