PipelineElement.Receivers Property

Gets a collection of pipeline elements that will receive the result of this PipelineElement.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public IList<PipelineElement> Receivers { get; }

Property Value

The IList<T> containing receivers.

Remarks

This property is used in branched image processing.

Examples

The following code shows how to create two 128x128 and 2048x2048 thumbnails for a single image.

C#
using (var reader = ImageReader.Create(@"Images\in.jpg"))
{
    var resizeBig = new Pipeline()
    { 
        new Resize(2048, 0), 
        ImageWriter.Create(@"Images\Output\out_2048.jpg")
    };
    var resizeSmall = new Pipeline()
    { 
        new Resize(128, 0),
        ImageWriter.Create(@"Images\Output\out_128.jpg")
    };

    reader.Receivers.Add(resizeBig.Build());
    reader.Receivers.Add(resizeSmall.Build());

    Pipeline.Run(reader);

    resizeBig.DisposeAllElements();
    resizeSmall.DisposeAllElements();
}

See Also

Reference

Manual