Table of Contents

Class CreatePoint

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that creates a 2D point with integer coordinates.

public class CreatePoint : Source<Point>
Inheritance
CreatePoint
Inherited Members

Properties

X

Gets or sets the x-coordinate of the point.

public int X { get; set; }

Property Value

int

Y

Gets or sets the y-coordinate of the point.

public int Y { get; set; }

Property Value

int

Methods

Generate()

Generates an observable sequence that contains a single 2D point with integer coordinates.

public override IObservable<Point> Generate()

Returns

IObservable<Point>

A sequence containing the created Point.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of 2D points using the specified integer coordinates, and where each Point object is emitted only when an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new 2D points.

Returns

IObservable<Point>

The sequence of created Point objects.

Type Parameters

TSource

The type of the elements in the source sequence.