Пример #1
0
 public void Dispose()
 {
     User32.ReleaseDC(_handle, _hdc);
 }
Пример #2
0
 public GdiDeviceContext(IntPtr handle)
 {
     _handle = handle;
     _hdc    = User32.GetDC(handle);
 }