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

Windows.Win32.Graphics.Gdi.SelectPaletteScope

Helper to scope palette selection.
namespace Windows.Win32.Graphics.Gdi { internal readonly ref struct SelectPaletteScope { public HDC HDC { get; } public HPALETTE HPALETTE { get; } public SelectPaletteScope(HDC hdc, HPALETTE hpalette, bool forceBackground, bool realizePalette); public static implicit operator HPALETTE(ref SelectPaletteScope paletteScope); public void Dispose(); } }