public void AddTransformation(params TransformationEvent[] transforms) { Transformations.AddRange(transforms); Transformations.Sort(); StartTime = Math.Min(transforms.Min(t => t.StartTime), StartTime); EndTime = Math.Max(transforms.Max(t => t.EndTime), EndTime); }
/// <summary> /// Sets transformations for image loading task /// </summary> /// <returns>The TaskParameter instance for chaining the call.</returns> /// <param name="transformations">Transformations.</param> public TaskParameter Transform(IEnumerable <ITransformation> transformations) { if (transformations == null) { throw new ArgumentNullException(nameof(transformations)); } Transformations.AddRange(transformations); return(this); }
public void AddTransformation(params TransformationEvent[] transforms) { Transformations.AddRange(transforms); Transformations.Sort(); EndTime = Transformations.Max(t => t.EndTime); }