/// <summary> /// Applies the given script file to the source image. /// </summary> /// <param name="fileName">Name of the file.</param> private void _ApplyScriptFile(string fileName) { var localEngine = new ScriptEngine(); localEngine.AddWithoutExecution(new NullTransformCommand()); ScriptSerializer.LoadFromFile(localEngine, fileName); this._ExecuteScriptActions(localEngine.Actions.ToArray()); }