void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     duoDevice            = new DUODevice();
     frameViewer.Device   = duoDevice;
     duoDevice.Resolution = new DUOResolutionInfo()
     {
         width   = 320,
         height  = 240,
         binning = DUOBinning.DUO_BIN_HORIZONTAL2 | DUOBinning.DUO_BIN_VERTICAL2,
         fps     = 30
     };
     duoDevice.Start();
     duoDevice.Exposure = 100;
     duoDevice.Gain     = 10;
 }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Press Any Key to Create DUODevice");
            Console.ReadKey();
            DUODevice device = new DUODevice();

            Console.WriteLine(device);
            Console.WriteLine("\nPress Any Key to Start Capture");
            Console.ReadKey();
            device.DUODeviceStatusChanged += DUODeviceStatusChanged;
            device.DUOFrameReceived       += DUOFrameReceived;
            device.Start();
            Console.WriteLine("\nPress Any Key to Stop Capture");
            Console.ReadKey();
            device.Stop();
            device.Dispose();
        }