Table of Contents

Method Generate

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

Generate()

Generates an observable sequence that contains a single empty canvas with the specified size and pixel format.

public override IObservable<Canvas> Generate()

Returns

IObservable<Canvas>

A sequence containing a single instance of the Canvas class representing an empty canvas with no drawing operators.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of canvas objects using the specified size and pixel format, and where each canvas is emitted only when an observable sequence emits a notification.

public IObservable<Canvas> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new canvas objects.

Returns

IObservable<Canvas>

A sequence of Canvas objects where each element represents an empty canvas with no drawing operators.

Type Parameters

TSource

The type of the elements in the source sequence.