public static byte[] CaptureImage()
        {
            WebCamWindow camCapture = new WebCamWindow();

            camCapture.ShowDialog();
            if (camCapture._ImageInBytes != null)
            {
                return(camCapture._ImageInBytes);
            }
            else
            {
                return(default(byte[]));
            }
        }
 public static byte[] CaptureImage()
 {
     WebCamWindow camCapture = new WebCamWindow();
     camCapture.ShowDialog();
     if (camCapture._ImageInBytes !=null)
     {
         return camCapture._ImageInBytes;
     }
     else
     {
         return default(byte[]);
     }
 }