I'm using radwebcam. I am calling the takesnapshot routine to take a snapshot after i've started the cam. When I call the Takesnapshot routine the SnapshotTaken does not fire. I cannot save the snapshots because of this. Please help.
2 Answers, 1 is accepted
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Oct 2020, 06:44 AM
Hello, Mike,
The RadWebCam.SnapshotTaken event occurs when a snapshot is taken. If the PreviewSnapshots is set to true (default value), the event is fired only if the SaveSnapshot button is pressed.
In case you are using the RadWebCam.TakeSnapshot method, feel free to set the PreviewSnapshots property to false in order to get the SnapshotTaken event immediately after calling the method.
SubNew()
InitializeComponent()
Me.RadWebCam1.PreviewSnapshots = FalseAddHandlerMe.RadWebCam1.SnapshotTaken, AddressOf RadWebCam1_SnapshotTaken
EndSubPrivateSub RadButton1_Click(sender AsObject, e As EventArgs) Handles RadButton1.Click
Me.RadWebCam1.TakeSnapshot()
EndSubPrivateSub RadWebCam1_SnapshotTaken(sender AsObject, e As Telerik.WinControls.UI.SnapshotTakenEventArgs)
'TODOEndSub
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).