Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

About Ventuz API

All other topics about Ventuz here.

Moderator: Support

Post Reply
Drac Zhang

About Ventuz API

Post by Drac Zhang » 23 Jul 2014, 06:53

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

User avatar
florian
Posts: 58
Joined: 18 Feb 2012, 19:42

Re: About Ventuz API

Post by florian » 23 Jul 2014, 08:04

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 !
Florian

Drac Zhang

Re: About Ventuz API

Post by Drac Zhang » 24 Jul 2014, 03:23

Hi florian,
Thanks for answering my question. I will try it to see does it work.

Best Regards
Drac Zhang

Post Reply