Ejemplo n.º 1
0
 private static IEnumerable <Camera> BuildCameraList()
 {
     for (int i = 0; i < CameraMethods.Count; i++)
     {
         WebCamLib.CameraInfo cameraInfo = CameraMethods.GetCameraInfo(i);
         yield return(new Camera(CameraMethods, cameraInfo.Name, cameraInfo.Index));
     }
 }
Ejemplo n.º 2
0
        private static IEnumerable <Camera> BuildCameraList()
        {
            //lets first rebuild the list
            CameraMethods.RefreshCameraList();

            for (int i = 0; i < CameraMethods.Count; i++)
            {
                WebCamLib.CameraInfo cameraInfo = CameraMethods.GetCameraInfo(i);
                yield return(new Camera(CameraMethods, cameraInfo.name, cameraInfo.index));
            }
        }