Table of Contents

Class AspectRatio

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that calculates the ratio of window viewport width to its height for each viewport size in the sequence.

public class AspectRatio : Transform<Size, float>
Inheritance
AspectRatio
Inherited Members

Methods

Process(IObservable<INativeWindow>)

Calculates the ratio of window viewport width to its height for each window in an observable sequence.

Process(IObservable<Size>)

Calculates the ratio of window viewport width to its height for each size in an observable sequence.

Process(IObservable<Tuple<float, float>>)

Calculates the ratio of window viewport width to its height for each size pair in an observable sequence.

Process<TEventArgs>(IObservable<EventPattern<INativeWindow, TEventArgs>>)

Calculates the ratio of window viewport width to its height for each window event in an observable sequence.

Process<TSource>(IObservable<TSource>)

Calculates the ratio of the shader window viewport width to its height, at the time the source sequence emits a notification.