Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 public void AddTransformation(params TransformationEvent[] transforms)
 {
     Transformations.AddRange(transforms);
     Transformations.Sort();
     EndTime = Transformations.Max(t => t.EndTime);
 }