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