---
title: "ColorPalette.Create Method (Bitmap, Int32, ColorQuantizationAlgorithm)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_Create_3_b82b50a1.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# ColorPalette.Create Method (Bitmap, Int32, ColorQuantizationAlgorithm)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Returns a new [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) with a given size containing colors generated from a given bitmap using the specified quantiztion algorithm.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static ColorPalette Create(Bitmap bitmap,int entryCount,ColorQuantizationAlgorithm quantizationAlgorithm
)
```
 
### Parameters
 
 - bitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md)
A [Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md) to create this palette from.

 - entryCount
     - Type: System.Int32
The number of colors in the palette.

 - quantizationAlgorithm
     - Type: [Aurigma.GraphicsMill.Transforms.ColorQuantizationAlgorithm](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ColorQuantizationAlgorithm.htm.md)
A color quantiztion algorithm used to reduce colors.
 
### Return Value
The [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance.
   
## See Also

### Reference

- [ColorPalette Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
- [Create Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ColorPalette_Create.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
