Advertisement
enos

c

Jul 11th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.09 KB | None | 0 0
  1. ////Proses simpan gambar
  2.                 //if (pb5.Image != null )
  3.                 //{
  4.                    
  5.                 //    pb5.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  6.                 //    pb4.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  7.                 //    pb3.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  8.                 //    pb2.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  9.                 //    pb1.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  10.                    
  11.  
  12.                 //}
  13.                 //else if (pb5.Image == null)
  14.                 //{
  15.                 //    pb4.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  16.                 //    pb3.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  17.                 //    pb2.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  18.                 //    pb1.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  19.  
  20.                 //}
  21.                 //else if (pb4.Image == null)
  22.                 //{
  23.                    
  24.                 //    pb3.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  25.                 //    pb2.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  26.                 //    pb1.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  27.                    
  28.  
  29.                 //}
  30.                 //else if (pb3.Image == null)
  31.                 //{
  32.  
  33.                 //    pb2.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  34.                 //    pb1.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  35.  
  36.                 //}
  37.                 //else if (pb2.Image == null)
  38.                 //{
  39.                 //    pb1.Image.Save(Application.StartupPath + "/TrainedFaces/" + facename);
  40.  
  41.                 //}
  42.                 //else
  43.                 if (pb1.Image == null)
  44.                 {
  45.                     MessageBox.Show("belum ada gambar");
  46.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement