---
title: "ColorPalette Methods "
canonical: https://www.graphicsmill.com/docs/gm/Methods_T_Aurigma_GraphicsMill_ColorPalette.htm
product: "Graphics Mill"
---

# ColorPalette Methods 
 
The [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [Clone](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_Clone.htm.md) |  Returns a full copy of this [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) instance. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm/icons/static.gif) |  [Create](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ColorPalette_Create.htm.md) |  Overloaded. <br>Returns a new [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) containing colors generated from a given bitmap. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [Dispose](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_Dispose.htm.md) |  Releases all resources used by this [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [Equals](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_Equals_1_d02429b3.htm.md) |  Tests whether the specified object is a [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) instance and is equivalent to this [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md).<br> (Overrides Object.Equals(Object).) |
 |  ![Protected method](https://www.graphicsmill.com/docs/gm/icons/protmethod.gif) |  Finalize |  (Inherited from Object.) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [FindNearestIndex](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_FindNearestIndex_1_99a0633e.htm.md) |  Returns an index of the color in this palette closest to a given one. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [GetEnumerator](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_GetEnumerator.htm.md) |  Returns an enumerator for the entire [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [GetEnumeratorBase](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_GetEnumeratorBase.htm.md) |  Returns an enumerator for the entire [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  GetHashCode |  (Inherited from Object.) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  GetType |  (Inherited from Object.) |
 |  ![Protected method](https://www.graphicsmill.com/docs/gm/icons/protmethod.gif) |  MemberwiseClone |  (Inherited from Object.) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [SetKeyColor](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ColorPalette_SetKeyColor.htm.md) |  Overloaded. <br>Makes a palette entry transparent. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  [ToGdiPlusColorPalette](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorPalette_ToGdiPlusColorPalette.htm.md) |  Gets the System.Drawing.Imaging.ColorPalette containing the same colors as this [ColorPalette](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md) does. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) |  ToString |  (Inherited from Object.) |
   
## See Also

### Reference

- [ColorPalette Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
