Table of Contents

Class CropCanvas

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

Represents an operator that crops the active drawing subregion of each canvas in the sequence.

public class CropCanvas : Transform<Canvas, Canvas>
Inheritance
CropCanvas
Inherited Members

Properties

RegionOfInterest

Gets or sets a rectangle specifying the region of interest inside the canvas.

public Rect RegionOfInterest { get; set; }

Property Value

Rect

Methods

Process(IObservable<Canvas>)

Crops the active drawing subregion of each 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 new canvas will use the specified subregion of the original image for all its drawing operations.