CVB.Net 15.0
Loading...
Searching...
No Matches
Stemmer.Cvb.Async Namespace Reference

Namespace for asynchronous image acquisition. More...

Classes

class  AcquisitionExtensions
 Async wrapper methods for IAcquisition objects. More...
 

Detailed Description

Namespace for asynchronous image acquisition.

This namesapce providess extension methods for Driver.IAcquisition types (like Device Driver.Streams), enabling their use with async/await.

To be able to use the async variants you need to use the this namespace:

static class Example
{
public static async Task Acquire10Images(Stream stream)
{
stream.Start();
try
{
for (int i = 0; i < 10; i++)
{
using (StreamImage image = await stream.WaitAsync())
{
// do processing...
}
}
}
finally
{
stream.Abort(); // ensure state after leaving method
}
}
}
Represents one acquisition stream of a Device.
Definition Stream.cs:36
void Start()
Starts the acquisition.
Definition Stream.cs:695
void Abort()
Stops the acquisition of images immediately.
Definition Stream.cs:912
Base class of all stream related images.
Definition StreamImage.cs:22
Namespace for asynchronous image acquisition.
Definition AcquisitionExtensions.cs:10
Namespace for driver or device related operations.
Definition AccessToken.cs:10
The namespace and assembly Stemmer.Cvb holds all published definitions of the types that form Cvb....
Definition AddNoise.cs:13