Пример #1
0
		public ImageViewPort()
		{
			_viewPortInstance = this;
			_currentPrimitive = new SelectionTool();
			DoubleBuffered = true;
			_shapeControl = new ShapeBoxControl(null);
			_navigationControl = new NavigationControl();						
		
			SetStyle(
				ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.UserPaint |
				ControlStyles.DoubleBuffer, true);
		}
Пример #2
0
        public ImageViewPort()
        {
            _viewPortInstance  = this;
            _currentPrimitive  = new SelectionTool();
            DoubleBuffered     = true;
            _shapeControl      = new ShapeBoxControl(null);
            _navigationControl = new NavigationControl();

            SetStyle(
                ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.UserPaint |
                ControlStyles.DoubleBuffer, true);
        }
Пример #3
0
		public void ResetScreens()
		{
			_primitive = new FakePrimitive();
			_shapeControl = new ShapeBoxControl(_primitive);

			_screenCopy = new DesktopCopy[Screen.AllScreens.Length];
			for (int i = 0; i < Screen.AllScreens.Length; i++)
			{
				_screenCopy[i] = new DesktopCopy();
				_screenCopy[i].DoCopy(Screen.AllScreens[i]);
			}
		}