Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
//1秒更新一次视频信息 private void timer1_Tick(object sender, EventArgs e) { tSdkFrameStatistic tFrameStatistic; if (m_hCamera > 0) { //获得SDK中图像帧统计信息,捕获帧、错误帧等。 MvApi.CameraGetFrameStatistic(m_hCamera, out tFrameStatistic); //显示帧率有应用程序自己记录。 string sFrameInfomation = String.Format("| Resolution:{0}*{1} | Display frames{2} | Capture frames{3} |", m_tFrameHead.iWidth, m_tFrameHead.iHeight, m_iDisplayedFrames, tFrameStatistic.iCapture); StateLabel.Text = sFrameInfomation; } else { StateLabel.Text = ""; } }