---
title: "ColorProfile..::.FromHdc Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorProfile_FromHdc_1_4cd1f3f7.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/)

# ColorProfile.FromHdc Method 
 
Returns color profile associated with the specified device context.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function FromHdc ( _hdc As IntPtr _
) As ColorProfile
```
 
```csharp
public static ColorProfile FromHdc(IntPtr hdc
)
```
 
### Parameters
 
 - hdc
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
Handle to device context.
 
### Return Value
Color profile associated with the device context.
   
## See Also

### Reference

- [ColorProfile Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
