StreamHandler Class

CVB.Net Documentation
Helper component to handle acquisition on a stream.
Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      Stemmer.Cvb.Forms.ComponentsStreamHandler

Namespace:  Stemmer.Cvb.Forms.Components
Assembly:  Stemmer.Cvb.Forms (in Stemmer.Cvb.Forms.dll) Version: 14.0.0.0
Syntax

public class StreamHandler : Component

The StreamHandler type exposes the following members.

Constructors

  NameDescription
Public methodStreamHandler
Creates the default acquisition Stream handler.
Public methodStreamHandler(IContainer)
Creates the default acquisition Stream handler to be embedded in the given container
Top
Properties

  NameDescription
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyLoopIndexedStreams
Gets/sets whether IndexedStreams are looped.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyStream
Gets/sets the stream to manage.
Top
Methods

  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Overrides ComponentDispose(Boolean).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnError
Raises the Error event.
Protected methodOnErrorAsync
Raises the ErrorAsync event.
Protected methodOnNewImage
Raises the NewImage event.
Protected methodOnNewImageAsync
Raises the NewImageAsync event.
Public methodStart
Subscribes to the acquisition.
Public methodStop
Unsubscribes from the acquisition stream.
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Events

  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Public eventError
Raised if an error occurs while the acquisition is running.
Public eventErrorAsync
Raised if an error occurs while the acquisition is running.
Public eventNewImage
Raised when a new image arrives in memory.
Public eventNewImageAsync
Raised when a new image arrives in memory.
Top
Remarks

With this handler no TimeoutException errors occur. It waits as long as an image arrives or acquisition is Stoped.

Also all events are delivered on the UI thread! If no events are registered, nothing happens except that the acquisition is kept active and images are received and discarded. A Display with a set DeviceImage will be updated, though.

See Also

Reference