Example #1
0
        public void EndDraw()
        {
            _drawing = false;
            if (_dirtyRect.IsEmpty)
            {
                return;
            }

            _outputDevice.Lock();
            try
            {
                _outputDevice.MoveBuffer(_buffer);
                _outputDevice.AddDirtyRect(_dirtyRect.ToRectangle());
            }
            finally
            {
                _outputDevice.Unlock();
            }
        }