예제 #1
0
 /// <summary>
 /// 清理所有正在使用的资源。
 /// </summary>
 /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         //if (twain != null)
         // {
         // twain.EndPhoto();
         //}
         if (vedioGrap != null)
         {
             vedioGrap.StopVideo();
         }
         if (components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose(disposing);
 }
예제 #2
0
        public void EndPhoto()
        {
            // twain.EndPhoto();
            isVedio = false;
            Image image = vedioGrap.GrapPhoto();

            vedioGrap.StopVideo();
            Clipboard.Clear();
            this.processImage = image;
        }