Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. AviCap

AviCap

Scheduled Pinned Locked Moved Visual Basic
helptutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jasonpb
    wrote on last edited by
    #1

    Does anyone know how to capture webcam images using avicap32.dll and not save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image, and then retrieve an image at any given time by way of the Image property. I do not want to use the clipboard because in my app a user may be using it for other things such as text editing, etc.. I have used DirectShow but avicap32.dll in my case would be better suited. Any help at all would be appreciated. -Jason

    L 1 Reply Last reply
    0
    • J jasonpb

      Does anyone know how to capture webcam images using avicap32.dll and not save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image, and then retrieve an image at any given time by way of the Image property. I do not want to use the clipboard because in my app a user may be using it for other things such as text editing, etc.. I have used DirectShow but avicap32.dll in my case would be better suited. Any help at all would be appreciated. -Jason

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      jasonpb wrote:

      how to capture webcam images

      http://www.codearchive.com/rate.php?rid=1752&go=1012[^]

      jasonpb wrote:

      save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image

      Get text image from clipboard.[^] Clear clipboard.[^]

      J 1 Reply Last reply
      0
      • L Lost User

        jasonpb wrote:

        how to capture webcam images

        http://www.codearchive.com/rate.php?rid=1752&go=1012[^]

        jasonpb wrote:

        save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image

        Get text image from clipboard.[^] Clear clipboard.[^]

        J Offline
        J Offline
        jasonpb
        wrote on last edited by
        #3

        My whole post was about avoiding the clipboard, when reading the documentation, it says there are alternatives to the clipboard, but i have yet to make any of them work. Since my app should allow for text editing in other areas of the app, I do not want to use the clipboard, for this reason... I was using the clipboard to start, but then when testing, i realized that I was losing some stuff that I had copied and had been replaced with an image. So then I decided as a workaround to right before I save the image to clipboard, I would copy the contents in the clipboard to memory, then send the image to it, retrieve the image back, then reset the contents of the clipboard back to its original contents. Most of the testing I did like this worked ok, but every now and then, the contents would get mixed up and where it should be saving an image it was saving text that was copied into the clipboard and vice versa. The documentation states that you can save it to some sort of an independant bitmap, but I do know how to go about doing that. Any suggestions? -Jason

        L 1 Reply Last reply
        0
        • J jasonpb

          My whole post was about avoiding the clipboard, when reading the documentation, it says there are alternatives to the clipboard, but i have yet to make any of them work. Since my app should allow for text editing in other areas of the app, I do not want to use the clipboard, for this reason... I was using the clipboard to start, but then when testing, i realized that I was losing some stuff that I had copied and had been replaced with an image. So then I decided as a workaround to right before I save the image to clipboard, I would copy the contents in the clipboard to memory, then send the image to it, retrieve the image back, then reset the contents of the clipboard back to its original contents. Most of the testing I did like this worked ok, but every now and then, the contents would get mixed up and where it should be saving an image it was saving text that was copied into the clipboard and vice versa. The documentation states that you can save it to some sort of an independant bitmap, but I do know how to go about doing that. Any suggestions? -Jason

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          http://www.devx.com/dotnet/Article/30375[^]

          J 1 Reply Last reply
          0
          • L Lost User

            http://www.devx.com/dotnet/Article/30375[^]

            J Offline
            J Offline
            jasonpb
            wrote on last edited by
            #5

            Thanks for the link, but I had already found that and it like many others use the clipboard for capturing still shots. For example, that articles code for the function to capture an image uses... '---copy the image to the clipboard--- SendMessage(hWnd, WM_CAP_EDIT_COPY, 0, 0) '---retrieve the image from clipboard and convert it ' to the bitmap format data = Clipboard.GetDataObject() I have found an alternative to that scheme but now I am having problems forcing that window to paint it self or atleast think it is painted when it is hidded, as sometimes i get a black capture image. -Jason

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups