Table of Contents

Class CanvasElement

Namespace
Bonsai.Vision.Drawing
Assembly
Bonsai.Vision.dll

Provides an abstract base class for operators that specify a new drawing operation to be applied to every canvas in the sequence.

[WorkflowElementCategory(ElementCategory.Transform)]
public abstract class CanvasElement : Transform<Canvas, Canvas>
Inheritance
CanvasElement
Derived
Inherited Members

Methods

GetRenderer()

When overridden in a derived class, returns the drawing operation to be applied to the canvas bitmap during rendering.

protected abstract Action<IplImage> GetRenderer()

Returns

Action<IplImage>

The Action<T> object that will be invoked to apply the drawing operation to the canvas bitmap during rendering.

Process(IObservable<Canvas>)

Specifies a new drawing operation to be applied to every canvas in an observable sequence.

public override IObservable<Canvas> Process(IObservable<Canvas> source)

Parameters

source IObservable<Canvas>

A sequence of canvas objects.

Returns

IObservable<Canvas>

A sequence of Canvas objects, where each instance represents the result of layering the new drawing operation on top of all the operations in the canvas.