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