Ejemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (m_Grabber != IntPtr.Zero)
     {
         tSdkGrabberStat stat;
         MvApi.CameraGrabber_GetStat(m_Grabber, out stat);
         string info = String.Format("| Resolution:{0}*{1} | DispFPS:{2} | CapFPS:{3} |",
                                     stat.Width, stat.Height, stat.DispFps, stat.CapFps);
         StateLabel.Text = info;
     }
 }
Ejemplo n.º 2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     Label[] Labels = { label1, label2, label3, label4 };
     for (int i = 0; i < 4; ++i)
     {
         if (m_Grabber[i] != IntPtr.Zero)
         {
             tSdkGrabberStat stat;
             MvApi.CameraGrabber_GetStat(m_Grabber[i], out stat);
             string info = String.Format("| Size:{0}*{1} | DispFPS:{2} | CapFPS:{3} |",
                                         stat.Width, stat.Height, stat.DispFps, stat.CapFps);
             Labels[i].Text = info;
         }
     }
 }