1 instantiation of ScreenDcCache
System.Windows.Forms (1)
System\Windows\Forms\Rendering\GdiCache.cs (1)
33public static ScreenDcCache.ScreenDcScope GetScreenHdc() => (s_dcCache ??= new ScreenDcCache()).Acquire();
8 references to ScreenDcCache
System.Windows.Forms (8)
System\Windows\Forms\Rendering\GdiCache.cs (3)
14private static ScreenDcCache? s_dcCache; 33public static ScreenDcCache.ScreenDcScope GetScreenHdc() => (s_dcCache ??= new ScreenDcCache()).Acquire(); 51ScreenDcCache.ScreenDcScope scope = GetScreenHdc();
System\Windows\Forms\Rendering\GdiCache.ScreenGraphicsScope.cs (3)
11/// Scope that creates a wrapping <see cref="Drawing.Graphics"/> for a <see cref="ScreenDcCache.ScreenDcScope"/> 20private readonly ScreenDcCache.ScreenDcScope _dcScope; 23public ScreenGraphicsScope(scoped ref ScreenDcCache.ScreenDcScope scope)
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (2)
18private readonly ScreenDcCache _cache; 20public ScreenDcScope(ScreenDcCache cache, HDC hdc)