Helper component to handle acquisition on a stream.
Inheritance Hierarchy
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
The StreamHandler type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StreamHandler |
Creates the default acquisition Stream handler.
| |
StreamHandler(IContainer) |
Creates the default acquisition Stream handler to be
embedded in the given container |
Properties
Name | Description | |
---|---|---|
CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) | |
Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) | |
Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
LoopIndexedStreams |
Gets/sets whether IndexedStreams are looped.
| |
Site | (Inherited from Component.) | |
Stream |
Gets/sets the stream to manage.
|
Methods
Name | Description | |
---|---|---|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Dispose | Releases all resources used by the Component. (Inherited from Component.) | |
Dispose(Boolean) |
Clean up any resources being used.
(Overrides ComponentDispose(Boolean).) | |
Equals | (Inherited from Object.) | |
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetService | (Inherited from Component.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
OnError |
Raises the Error event.
| |
OnErrorAsync |
Raises the ErrorAsync event.
| |
OnNewImage |
Raises the NewImage event.
| |
OnNewImageAsync |
Raises the NewImageAsync event.
| |
Start |
Subscribes to the acquisition.
| |
Stop |
Unsubscribes from the acquisition stream.
| |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
Events
Name | Description | |
---|---|---|
Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) | |
Error |
Raised if an error occurs while the acquisition is running.
| |
ErrorAsync |
Raised if an error occurs while the acquisition is running.
| |
NewImage |
Raised when a new image arrives in memory.
| |
NewImageAsync |
Raised when a new image arrives in memory.
|
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