Skip to content

How to create the new processing command

George Plotnikov edited this page Mar 20, 2018 · 2 revisions

How to create the new processing command

To create the new processing command you have to implement

public interface IImageProcessorCommand
{
    IEnumerable<ImageWrapper<T>> Perform<T>(IEnumerable<ImageWrapper<T>> images);
}

T - is a type - representation of colour (RBG)

images - images you pass inside, all of them should be returned respectfully to the command

Examples: ApplyAlgorithmCommand and ScaleImageCommand

Clone this wiki locally