Exemple #1
0
 public void Dispose()
 {
     User32.ReleaseDC(_handle, _hdc);
 }
Exemple #2
0
 public GdiDeviceContext(IntPtr handle)
 {
     _handle = handle;
     _hdc    = User32.GetDC(handle);
 }