public static GDIContext CreateForDefaultDisplay() { IntPtr hdc = IntPtr.Zero; hdc = User32.GetWindowDC(User32.GetDesktopWindow()); GDIContext newContext = new GDIContext(hdc, false); return newContext; }