public void Save(ICanvas canvas, Area area, string filename) { Image img = Copy(canvas, area); img.Save(filename); img.Dispose(); }
void ProcessImage(Image image, Time duration) { string path = System.IO.Path.GetTempFileName ().Replace (@"\", @"\\"); image.Save (path); videoEditor.AddImageSegment (path, 0, duration.MSeconds, "", new Area ()); }