<PackageReference Include="System.Drawing.Common" Version="10.0.4" />

Windows.Win32.Graphics.Gdi.SetBkModeScope

Helper to scope selecting a given background mix mode into a HDC. Restores the original mix mode into the HDC when disposed.
namespace Windows.Win32.Graphics.Gdi { internal readonly ref struct SetBkModeScope { public SetBkModeScope(HDC hdc, BACKGROUND_MODE bkmode); public void Dispose(); } }