<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

BufferedGraphicsManager

public static class BufferedGraphicsManager
Provides access to the main buffered graphics context object for the application domain.
using System.Runtime.CompilerServices; namespace System.Drawing { [NullableContext(1)] [Nullable(0)] public static class BufferedGraphicsManager { public static BufferedGraphicsContext Current { get; } static BufferedGraphicsManager() { AppDomain.CurrentDomain.ProcessExit += OnShutdown; AppDomain.CurrentDomain.DomainUnload += OnShutdown; Current = new BufferedGraphicsContext(); } private static void OnShutdown([Nullable(2)] object sender, EventArgs e) { Current.Invalidate(); } } }