Table of Contents

Class VisualizerCanvas

Namespace
Bonsai.Vision.Design
Assembly
Bonsai.Vision.Design.dll

Provides a control with a graphics context and a simple render loop for scheduling accelerated rendering operations.

public class VisualizerCanvas : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
VisualizerCanvas
Implements
Derived
Inherited Members

Constructors

VisualizerCanvas()

Initializes a new instance of the VisualizerCanvas class.

public VisualizerCanvas()

Properties

Canvas

Gets the control containing the graphics context on which to call render operations.

public GLControl Canvas { get; }

Property Value

GLControl

Methods

Dispose(bool)

Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

MakeCurrent()

Makes the canvas context current in the calling thread.

public void MakeCurrent()

OnRenderFrame(EventArgs)

Raises the RenderFrame event.

protected virtual void OnRenderFrame(EventArgs e)

Parameters

e EventArgs

A EventArgs that contains the event data.

OnSwapBuffers(EventArgs)

Raises the SwapBuffers event.

protected virtual void OnSwapBuffers(EventArgs e)

Parameters

e EventArgs

A EventArgs that contains the event data.

Events

RenderFrame

Occurs when it is time to render a frame.

public event EventHandler RenderFrame

Event Type

EventHandler

SwapBuffers

Occurs immediately after the front and back buffers are swapped, and the rendered scene is presented to the screen.

public event EventHandler SwapBuffers

Event Type

EventHandler