---
title: "ColorPalette Constructor "
canonical: https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorPalette_ctor.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/)

# ColorPalette Constructor 
 
Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance.
 
Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance.
 
## Overload List

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(ColorPalette)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_1_d799edf2.htm.md) |  Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. The palette is copied from specified [System.Drawing.Imaging.ColorPalette](http://msdn2.microsoft.com/en-us/t15ybftc) object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(Int32, Boolean)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_2_ca3359b5.htm.md) |  Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. You can specify how much entries the palette should have. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(Bitmap, Boolean)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_2_c487cc6e.htm.md) |  Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. Colors of this palette are generated from the specified bitmap. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(ColorPaletteType, Boolean)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_2_4fcbac4d.htm.md) |  Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. You can set palette type here. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(RgbColor\[\], Boolean)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_2_7e0e420d.htm.md) |  Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. You can initialize palette with given array entries here. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(Bitmap, Int32, Boolean)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_3_bad3258f.htm.md) |  Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. Colors of this palette are generated from the specified bitmap. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(Bitmap, Int32, ColorQuantizationAlgorithm, Int32)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_4_5f9b62ac.htm.md) |  Creates and initializes a new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) instance. Colors of this palette are generated from the specified bitmap. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette(Bitmap, Int32, Boolean, ColorQuantizationAlgorithm)](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorPalette_ctor_4_8ef4239c.htm.md) |  Creates and initializes a new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) instance. Colors of this palette are generated from the specified bitmap. |
   
## See Also

### Reference

- [ColorPalette Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
- [ColorPalette Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_ColorPalette.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
