StreamGetTimedSnapshot Method (UsTimeSpan)

CVB.Net Documentation
Acquires a single image and returns it.

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

public virtual StreamImage GetTimedSnapshot(
	UsTimeSpan timeSpan
)

Parameters

timeSpan
Type: Stemmer.Cvb.UtilitiesUsTimeSpan
Time span to wait for (millisecond granularity).

Return Value

Type: StreamImage
Grabbed image.

Implements

IAcquisitionGetTimedSnapshot(UsTimeSpan)
Exceptions

ExceptionCondition
TimeoutExceptionMost common exception: timeSpan elapsed without receiving new image.
Remarks

Waits for the given timeSpan for the image to be taken.

Attention: it is generally not possible to call this method while the acquisition has been started by Start.

Dispose the returned Image when not needed anymore!

By default the returned image content is only guaranteed to stay unchanged until the next call to this method; afterwards the returned image is normally disposed. Thus it is normally not save to use this image in a display.

See Also

Reference