---
title: "ColorProfile.FromHdc Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorProfile_FromHdc_1_4cd1f3f7.htm
product: "Graphics Mill"
---

# ColorProfile.FromHdc Method 
 
Gets a color profile associated with the specified device context.
 
**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 ColorProfile FromHdc(IntPtr hdc
)
```
 
### Parameters
 
 - hdc
     - Type: System.IntPtr
A handle to the device context.
 
### Return Value
A [ColorProfile](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorProfile.htm.md) associated with the device context.
   
## See Also

### Reference

- [ColorProfile Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
