Table of Contents

Class ImageBox

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

Represents a graphics accelerated control for displaying an image.

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

Properties

Image

Gets or sets the image to display.

public IplImage Image { get; set; }

Property Value

IplImage

ImageScale

Gets or sets the brightness scale factor applied when rendering the image.

public double ImageScale { get; set; }

Property Value

double

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.

OnLoad(EventArgs)

Raises the Load event.

protected override void OnLoad(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnRenderFrame(EventArgs)

Raises the RenderFrame event.

protected override void OnRenderFrame(EventArgs e)

Parameters

e EventArgs

A EventArgs that contains the event data.

OnSwapBuffers(EventArgs)

Raises the SwapBuffers event.

protected override void OnSwapBuffers(EventArgs e)

Parameters

e EventArgs

A EventArgs that contains the event data.

SetImage(IplImage)

Updates the image to display in the control.

protected virtual void SetImage(IplImage image)

Parameters

image IplImage

The image to display.