namespace ImageSharp.Tests.Drawing.Paths
{
using System;
using System.IO;
using ImageSharp;
using Processing;
using System.Collections.Generic;
using ImageSharp.Formats;
///
/// Watches but does not actually run the processors against the image.
///
///
public class ProcessorWatchingImage : Image
{
public List ProcessorApplications { get; } = new List();
public ProcessorWatchingImage(int width, int height)
: base(width, height, Configuration.CreateDefaultInstance())
{
}
public override void ApplyProcessor(IImageProcessor processor, Rectangle rectangle)
{
this.ProcessorApplications.Add(new ProcessorDetails
{
processor = processor,
rectangle = rectangle
});
}
public struct ProcessorDetails
{
public IImageProcessor processor;
public Rectangle rectangle;
}
}
}