public void OpenImageFile(String fileName)
 {
     lblSource.Text = "Source: " + System.IO.Path.GetFileName(fileName);
     imageStream = new ImageStreamController(fileName, cmdDeinterlace.Checked);
     lblElapsedTime.Visible = false;
 }
        public void StopImageStream()
        {
            isStopped = true;

            cmdPause.Checked = false;
            if (renderTimer != null)
            {
                renderTimer.Stop();
            }

            if (imageStream != null)
            {
                imageStream.StopReading();
            }

            imageStream = null;
        }
 public void OpenImageCapture(int streamId)
 {
     imageStream = new ImageStreamController(streamId, cmdDeinterlace.Checked);
     lblSource.Text = "Source: Streaming";
     lblElapsedTime.Visible = true;
 }