This method of the GraphicsX Class retrieves the Win32 display context handle. This is useful when the graphics object is used with a Microsoft® DirectDraw® surface, printer or Microsoft® ActiveX® object (graphics objects created for components do not have consistent HDC values).
public int gethdc();
Returns the Win32 display context handle.