Page 1 of 1

About Ventuz API

Posted: 23 Jul 2014, 06:53
by Drac Zhang
Hi,
I want to use Ventuz API to do the snapshot with new thread. But when I see the Snapshot Method in Ventuz API there have a "Object asyncState".
I don't know how to define it. So is there any example to tell me how to define the asyncState?

Best Regards
Drac Zhang

Re: About Ventuz API

Posted: 23 Jul 2014, 08:04
by florian
Hi,

With Visual Basic, i used this code part :

Code: Select all

 
Dim yop As Object
returnedTaskTResult = clu(clustertoSnap).Snapshot(0, ImageFormat.PNG, 1920, 1080, Nothing, Nothing, Nothing, Nothing, Filter.High, True, yop)

Dim MS = New MemoryStream(returnedTaskTResult.Result)
PictureBox3.Image = Image.FromStream(MS)
As you can see, i'm not using the asyncState object "yop"
My skills are limited on API coding, but in my case i don't need this object

Hope it helps !

Re: About Ventuz API

Posted: 24 Jul 2014, 03:23
by Drac Zhang
Hi florian,
Thanks for answering my question. I will try it to see does it work.

Best Regards
Drac Zhang