Esempio n. 1
0
 void StartPanoCam()
 {
     panoCam          = new CamRetriever(CamRetriever.getPanoCamIndex());
     panoCam.CropArea = new RectangleF(Properties.Settings.Default.Pano_Crop_Left,
                                       Properties.Settings.Default.Pano_Crop_Top,
                                       Properties.Settings.Default.Pano_Crop_Width,
                                       Properties.Settings.Default.Pano_Crop_Height);
     panoCam.NewFrameAvailableEvent += NewFrameAvailableEvent;
     panoCam.Start();
 }
Esempio n. 2
0
        void StartTableCam()
        {
            tableCam?.Close();
            int tableCamIndex = cbTableCam.SelectedIndex >= 0 ? cbTableCam.SelectedIndex : 0;

            tableCam          = new CamRetriever(tableCamIndex);
            tableCam.CropArea = new RectangleF(Properties.Settings.Default.Table_Crop_Left,
                                               Properties.Settings.Default.Table_Crop_Top,
                                               Properties.Settings.Default.Table_Crop_Width,
                                               Properties.Settings.Default.Table_Crop_Height);
            tableCam.NewFrameAvailableEvent += NewFrameAvailableEvent;
            tableCam.Start();
        }