<PackageReference Include="System.Drawing.Common" Version="11.0.0-preview.1.26104.118" />

Windows.Win32.Graphics.Gdi.SetMapModeScope

Helper to scope selecting a given mapping mode into a HDC. Restores the original mapping mode into the HDC when disposed.
namespace Windows.Win32.Graphics.Gdi { internal readonly ref struct SetMapModeScope { public SetMapModeScope(HDC hdc, HDC_MAP_MODE mapMode); public void Dispose(); } }