Table of Contents

Class CreateCanvas

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

Represents an operator that creates an empty canvas using the specified size and pixel format.

public class CreateCanvas : Source<Canvas>
Inheritance
CreateCanvas
Inherited Members

Properties

Channels

Gets or sets the number of channels in the canvas.

Color

Gets or sets the background color used to initialize all pixels in the canvas. If not specified, the bitmap memory will be allocated when rendering the canvas, but will not be initialized.

Depth

Gets or sets the bit depth of individual pixels in the canvas.

Size

Gets or sets the size of the canvas.

Methods

Generate()

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

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.