/// <summary> /// start capturing /// </summary> public void StartCapture() { Rectangle rctDeskTop = SmartBoundaryDetection.GetDesktopBounds(); _imageCaptureCursor = new ImageCaptureCursor(); var cursor = _imageCaptureCursor.GetCursor(); _wCapture = new ImageCaptureWindow(rctDeskTop, _areaSelection); _wCapture.Cursor = cursor; _wCapture.NotifyCapturingDone += OnScreenCapturingDoneNotify; _wCapture.NotifyCapturingCancel += OnScreenCapturingCancelNotify; _wCapture.Show(); }
public AreaSelection() { _screenProps = new ScreenProperties(); _boundaryDetection = new SmartBoundaryDetection(_screenProps); }