---
title: "Common..::.ConvertToCmyk Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common_ConvertToCmyk_4_68477004.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/)

# Common.ConvertToCmyk Method 
 
Converts the bitmap to CMYK color space using the specified color profiles.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Shared Sub ConvertToCmyk ( _bitmap As Bitmap, _rgb As ColorProfile, _cmyk As ColorProfile, _grayscale As ColorProfile _
)
```
 
```csharp
public static void ConvertToCmyk(Bitmap bitmap,ColorProfile rgb,ColorProfile cmyk,ColorProfile grayscale
)
```
 
### Parameters
 
 - bitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
The bitmap to convert.

 - rgb
     - Type: [Aurigma.GraphicsMill.ColorProfile](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
The RGB color profile used for conversion.

 - cmyk
     - Type: [Aurigma.GraphicsMill.ColorProfile](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
The CMYK color profile used for conversion.

 - grayscale
     - Type: [Aurigma.GraphicsMill.ColorProfile](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
The grayscale color profile used for conversion.
   
## See Also

### Reference

- [Common Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
