protected override void Dispose(bool disposing) { WinApi.DeleteObject(hBitmap); WinApi.DeleteDC(memDC); WinApi.ReleaseDC(Window.Handle, hdc); }
public WindowGraphics(Window window) { Window = window; hdc = WinApi.GetDC(window.Handle); memDC = WinApi.CreateCompatibleDC(IntPtr.Zero); }