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. C / C++ / MFC
  4. AVICap: Capture from camera to bitmap when preview window is hidden

AVICap: Capture from camera to bitmap when preview window is hidden

Scheduled Pinned Locked Moved C / C++ / MFC
helpgraphicsquestion
2 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.
  • Y Offline
    Y Offline
    Yong Haur TAY
    wrote on last edited by
    #1

    Dear all, I am having some problem to use the AVICap macros provided by Windows. I am writing an application to constantly (say 1 second) grab an image from the web camera and save it as an bitmap file. I used capFileSaveDIB() to save the image captured into the bitmap file. The program works fine when it is the active window (running at the foreground). If the application is minimized, or covered by another application, which means the preview window is invisible, then, capFileSaveDIB() will not save the current image to the file. Can anybody help me on this? Should I use capFileSaveDIB() for this? Or any setting that I have forgotten? Thanks Yong Haur:confused: :confused: :confused: :confused: :confused:

    B 1 Reply Last reply
    0
    • Y Yong Haur TAY

      Dear all, I am having some problem to use the AVICap macros provided by Windows. I am writing an application to constantly (say 1 second) grab an image from the web camera and save it as an bitmap file. I used capFileSaveDIB() to save the image captured into the bitmap file. The program works fine when it is the active window (running at the foreground). If the application is minimized, or covered by another application, which means the preview window is invisible, then, capFileSaveDIB() will not save the current image to the file. Can anybody help me on this? Should I use capFileSaveDIB() for this? Or any setting that I have forgotten? Thanks Yong Haur:confused: :confused: :confused: :confused: :confused:

      B Offline
      B Offline
      bobbies
      wrote on last edited by
      #2

      it is the major disadvantage of avicap class.it doesn't work in invisible mode.read article by vadim in multimedia/video section of code guru.try use his class it is slow but works fine bye bobbies_2001@yahoo.com bobby

      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