Пример #1
0
 public static void SaveImage()
 {
     if (!string.IsNullOrEmpty(Steamer.url))
     {
         DateTime date      = DateTime.Now;
         string   filePath2 = "";
         filePath2 = ((!string.IsNullOrEmpty(Steamer.FileDir)) ? (Steamer.FileDir + "//" + date.ToString("yyyyMMddHHmmss") + ".jpg") : (date.ToString("yyyyMMddHHmmss") + ".jpg"));
         Steamer.DecodeAllFramesToImages(Steamer.url, filePath2);
     }
 }
Пример #2
0
 public void Execute(IJobExecutionContext context)
 {
     Steamer.SaveImage();
 }