DisplaySetImageAsync Method

CVB.Net Documentation
Sets a new image asynchronously.

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

public Task SetImageAsync(
	Image image
)

Parameters

image
Type: Stemmer.CvbImage
Image to display; null if just the image data is to be redisplayed.

Return Value

Type: Task
Task to wait on for completion. The task's state will be canceled if it was not used for actually updating the display.
Remarks

If multiple images are to be displayed in one render phase, only the newest is rendered.

Attention: Image drawing is performed in the UI thread. Thus if you Wait on the returned Task from the UI thread, the application will dead lock.

Otherwise it is safe to call this method from non-UI threads.

See Also

Reference