<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.2.25502.107" />
Windows.Win32.Graphics.Gdi.SelectObjectScope
Helper to scope selecting a GDI object into an
HDC. Restores the original
object into the
HDC when disposed.
namespace Windows.
Win32.
Graphics.
Gdi
{
internal readonly ref struct SelectObjectScope
{
public HGDIOBJ PreviousObject { get; }
public SelectObjectScope(
HDC hdc,
HGDIOBJ object);
public void Dispose();
}
}