Exemplo n.º 1
0
        public FrmTomaFoto()
        {
            InitializeComponent();

            captura = null;

            //try
            {
                dispositivoDeVideo = new FilterInfoCollection(FilterCategory.VideoInputDevice);

                fuenteDeVideo                 = new VideoCaptureDevice(dispositivoDeVideo[0].MonikerString);
                fuenteDeVideo.NewFrame       += new NewFrameEventHandler(Video_NuevoFrame);
                fuenteDeVideo.VideoResolution = fuenteDeVideo.VideoCapabilities[fuenteDeVideo.VideoCapabilities.Length - 1];

                fuenteDeVideo.Start();
            }

            /*catch (VideoException)
             * {
             *
             *  MessageBox.Show("Hubo un error al inicializar el video");
             * }*/
            formato = new Util.Imagen(fuenteDeVideo.VideoResolution.FrameSize);
        }
Exemplo n.º 2
0
 public SocioViewModel()
 {
     sociosTabla     = new GimnasioPruebasDataSet.SociosDataTable();
     sociosConsultas = new GimnasioPruebasDataSetTableAdapters.SociosTableAdapter();
     formatoImagen   = new Util.Imagen();
 }