Results 1 to 15 of 15

Thread: [Resolved] Webcam(have code) -> Picturebox

Threaded View

  1. #9

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    Re: Webcam(have code) -> Picturebox (NOT Resolved, almost)

    Ok, here's what I got and it's sexy

    Code:
    Public Class Form1
        Dim Touchless1 As New TouchlessLib.TouchlessMgr
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            StartCapture()
        End Sub
    
        Public Sub StartCapture()
            If Touchless1.Cameras.Count = 0 Then MessageBox.Show("This application needs a webcam") : Return
            Touchless1.CurrentCamera = Touchless1.Cameras.First
            AddHandler Touchless1.CurrentCamera.OnImageCaptured, AddressOf CaptureInvoke
        End Sub
    
        Private Sub CaptureInvoke()
            PictureBox1.Image = Touchless1.CurrentCamera.GetCurrentImage()
        End Sub
    
    End Class
    Yea, much better, much easier to understand, less BS, thanks so much
    Last edited by intellilogic; Oct 29th, 2010 at 03:45 PM. Reason: Removed override

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width