Exemplo n.º 1
0
        public void Dispose()
        {
            Win32FontSystem.SelectObject(_hDC, _prevObject);

            if (_graphics != null)
            {
                _graphics.ReleaseHdc(_hDC);
            }

            _hDC      = _prevObject = IntPtr.Zero;
            _graphics = null;
        }
Exemplo n.º 2
0
 public GdiObjectSelector(IntPtr hDC, IntPtr hObject)
 {
     _hDC        = hDC;
     _prevObject = Win32FontSystem.SelectObject(_hDC, hObject);
 }
Exemplo n.º 3
0
 public GdiObjectSelector(Graphics g, IntPtr hObject)
 {
     _graphics   = g;
     _hDC        = g.GetHdc();
     _prevObject = Win32FontSystem.SelectObject(_hDC, hObject);
 }