Example #1
0
 public void ShowImage(string filename)
 {
     if (mVideoSource != null)
     {
         Image img = mVideoSource.GetFrame();
         if (img != null)
         {
             FormImage form = new FormImage();
             form.ShowImage(img, filename);
         }
     }
 }
Example #2
0
 public Bitmap getFrame(bool isShow)
 {
     if (mFileVS != null)
     {
         Bitmap bmp = mFileVS.GetFrame();
         if (bmp != null)
         {
             if (isShow)
             {
                 FormImage form = new FormImage();
                 form.Width  = 1024;
                 form.Height = 512;
                 form.ShowImage(bmp, "新截图");
             }
             return(bmp);
         }
     }
     return(null);
 }