---
title: "ColorPalette..::.ToGdiplusColorPalette Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_ToGdiplusColorPalette.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.ToGdiplusColorPalette Method 
 
Converts current palette to [System.Drawing.Imaging.ColorPalette](http://msdn2.microsoft.com/en-us/t15ybftc) class which can be used in native .NET drawing classes.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function ToGdiplusColorPalette As ColorPalette
```
 
```csharp
public ColorPalette ToGdiplusColorPalette()
```
 
### Return Value
Copy of the palette converted to [System.Drawing.Imaging.ColorPalette](http://msdn2.microsoft.com/en-us/t15ybftc).
   
## See Also

### Reference

- [ColorPalette Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
