Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            _liveProvider  = new DrawingImageProvider();
            _resizeHandler = new VideoResizer();

            _capture   = new FrameCapture();
            _connector = new MediaConnector();
        }
Beispiel #2
0
        /// <summary>
        /// Initializes components for login-scanner-window and components for webcam-use.
        /// </summary>
        public Login_scanner_window()
        {
            InitializeComponent();

            _imageProvider                 = new DrawingImageProvider();
            _mediaConnector                = new MediaConnector();
            _barcodeReader                 = ImageProcesserFactory.CreateBarcodeReader();
            _imageProcesserHandler         = new ImageProcesserHandler();
            _frameCapture                  = new FrameCapture();
            _barcodelist                   = new List <DetectedBarcode>();
            _videoViewer.BackColor         = Color.Black;
            state_textbox.Text             = "OFFLINE";
            state_textbox.TextAlign        = HorizontalAlignment.Center;
            detectStatus_textbox.Text      = "SØGER IKKE";
            detectStatus_textbox.TextAlign = HorizontalAlignment.Center;
            disconnect_button.Enabled      = false;
        }
Beispiel #3
0
        public void SaveImage(ImageSource iSource, string iPath)
        {
            var capture = new FrameCapture();

            capture.Save(iSource, iPath);
        }
Beispiel #4
0
 private void captureButton_Click(object sender, RoutedEventArgs e)
 {
     FrameCapture fc = new FrameCapture();
     fc.Save();
 }