Exemplo n.º 1
0
        private void AvtForm_Load(object sender, EventArgs e)
        {
            // Try to load the previously used device.
            try
            {
                CameraCtrl.LoadDeviceStateFromFile("device.xml", true);
            }
            catch
            {
                // Either the xml file does not exist or the device
                // could not be loaded. In both cases we do nothing and proceed.
            }

            CameraCtrl.LiveDisplayDefault    = false;
            CameraCtrl.LiveDisplayHeight     = CameraCtrl.Height;
            CameraCtrl.LiveDisplayWidth      = CameraCtrl.Width;
            CameraCtrl.LiveCaptureContinuous = true;
            CameraCtrl.LiveDisplay           = false;
            CameraCtrl.OverlayBitmap.Enable  = true;
        }