public void Apply(long index, string source, string target, string filename) { using (var img = new ImageData(Path.Combine(source, filename), target, filename)) { img.Params["num"] = index.ToString(); foreach (var a in this.actions) { a.Apply(img); } } GC.Collect(GC.MaxGeneration); GC.WaitForPendingFinalizers(); }
public abstract void Apply(ImageData img);