Пример #1
0
 public Image Do(Image src, int t)
 {
     Image res = null;
     Filters f = new Filters();
     res = f.RunFilter(src, t);
     f = null;
     GC.Collect();
     return res;
 }
Пример #2
0
 public Image Do(Image src, int t, int id, int st_id)
 {
     Image res = null;
     Filters f = new Filters();
     res = f.RunFilter(src, t);
     f = null;
     Form1.pic pic = new Form1.pic();
     if (t > 9)
         pic.id = id + st_id + 10;
     else
         pic.id = id + st_id;
     pic.src = res.Bitmap;
     Form1.pb = pic;
     GC.Collect();
     return res;
 }