9 instantiations of CreateDcScope
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\HBITMAP.cs (2)
24
using CreateDcScope sourceDC =
new
(screenDC);
28
using CreateDcScope destinationDC =
new
(screenDC);
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1702
using CreateDcScope compatibleDC =
new
(default);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
612
using CreateDcScope hdc =
new
("DISPLAY");
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
707
using CreateDcScope dc =
new
(default);
System\Windows\Forms\Rendering\ControlPaint.cs (4)
181
using CreateDcScope screen =
new
(default);
182
using CreateDcScope dc =
new
(screen);
336
using CreateDcScope sourceDC =
new
(screenDC);
337
using CreateDcScope targetDC =
new
(screenDC);
16 references to CreateDcScope
System.Private.Windows.Core (8)
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (4)
52
public static implicit operator HDC(in
CreateDcScope
scope) => scope.HDC;
53
public static unsafe implicit operator HGDIOBJ(in
CreateDcScope
scope) => (HGDIOBJ)(scope.HDC.Value);
54
public static implicit operator nint(in
CreateDcScope
scope) => scope.HDC;
55
public static explicit operator WPARAM(in
CreateDcScope
scope) => (WPARAM)(nuint)(nint)scope.HDC;
Windows\Win32\Graphics\Gdi\HBITMAP.cs (2)
24
using
CreateDcScope
sourceDC = new(screenDC);
28
using
CreateDcScope
destinationDC = new(screenDC);
Windows\Win32\Graphics\Gdi\HdcHandle.cs (2)
13
/// Take ownership from a <see cref="
CreateDcScope
"/>.
15
public HdcHandle(
CreateDcScope
hdc)
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1702
using
CreateDcScope
compatibleDC = new(default);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
612
using
CreateDcScope
hdc = new("DISPLAY");
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
707
using
CreateDcScope
dc = new(default);
System\Windows\Forms\Rendering\ControlPaint.cs (4)
181
using
CreateDcScope
screen = new(default);
182
using
CreateDcScope
dc = new(screen);
336
using
CreateDcScope
sourceDC = new(screenDC);
337
using
CreateDcScope
targetDC = new(screenDC);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\DeviceContextExtensions.cs (1)
124
internal static Graphics CreateGraphics(this
CreateDcScope
hdc) => Graphics.FromHdcInternal(hdc.HDC);