22 references to FromHdcInternal
System.Drawing.Common (10)
System\Drawing\BufferedGraphicsContext.cs (1)
330_compatGraphics = Graphics.FromHdcInternal(_compatDC);
System\Drawing\Font.cs (5)
698using Graphics graphics = Graphics.FromHdcInternal(hdc); 706using Graphics graphics = Graphics.FromHdcInternal(hdc); 717using Graphics graphics = Graphics.FromHdcInternal(hdc); 726using Graphics graphics = Graphics.FromHdcInternal(hdc); 744using Graphics graphics = Graphics.FromHdcInternal(hdc);
System\Drawing\Graphics.cs (1)
84return hdc == 0 ? throw new ArgumentNullException(nameof(hdc)) : FromHdcInternal(hdc);
System\Drawing\Printing\DefaultPrintController.cs (1)
89_graphics = Graphics.FromHdcInternal(_hdc);
System\Drawing\Printing\PrinterSettings.cs (1)
509Graphics g = Graphics.FromHdcInternal(hdc);
System\Drawing\Printing\PrintPreviewGraphics.cs (1)
32using Graphics graphics = Graphics.FromHdcInternal(hdc);
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
103using Graphics graphics = Graphics.FromHdcInternal(hdc); 117Assert.Throws<ExternalException>(() => Graphics.FromHdcInternal(IntPtr.Zero)); 236Assert.Throws<ExternalException>(() => Graphics.FromHdcInternal(10));
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3806using Graphics g = Graphics.FromHdcInternal((IntPtr)dc); 3846using Graphics g = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
667using Graphics graphics = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
383using Graphics graphics = Graphics.FromHdcInternal(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
110_graphics = Graphics.FromHdcInternal((IntPtr)_hdc);
System.Windows.Forms.Primitives (3)
System\Windows\Forms\DeviceContextExtensions.cs (3)
123internal static Graphics CreateGraphics(this HDC hdc) => Graphics.FromHdcInternal(hdc); 124internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC); 125internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (1)
99using Graphics g = Graphics.FromHdcInternal(hdc);