This is a migrated thread and some comments may be shown as answers.

TakeSnapshot not firing SnapshotTaken

2 Answers 159 Views
WebCam
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 14 Oct 2020, 06:31 PM
     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

Sort by
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. 
    Sub New()
         
        InitializeComponent()

        Me.RadWebCam1.PreviewSnapshots = False
        AddHandler Me.RadWebCam1.SnapshotTaken, AddressOf RadWebCam1_SnapshotTaken

    End Sub
    Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
        Me.RadWebCam1.TakeSnapshot()
    End Sub

    Private Sub RadWebCam1_SnapshotTaken(sender As Object, e As Telerik.WinControls.UI.SnapshotTakenEventArgs)
        'TODO
    End Sub
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).

0
Mike
Top achievements
Rank 1
answered on 15 Oct 2020, 12:27 PM
That was the ticket!  Thank you!
Tags
WebCam
Asked by
Mike
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Mike
Top achievements
Rank 1
Share this question
or