Still Image capture in (Using a WEBCAM)


  • I would really like to get some program code for still image capturing using a Webcam.
    I've searched the web for quite a while now but did not get any codes. Currently i have a code for capturing video. In that  code an image can be captured, but only with 640 X 480 resolution (Maximum Video resolution for my web camera). The WM_CAP_DLG_VIDEOFORMAT dialog box only allows the resolution to be set up to 640 X 480.

    I want to capture images in 1024 X 768 resolution (Mega pixel level)

    I found out a new way using WPD_COMMAND_STILL_IMAGE_CAPTURE
    But i cannot still work with it

    Would any one be kind enough to give me some sample code for capturing images in a higher resolution.

    Monday, May 28, 2007 7:09 PM


  • Hi Indrajith,

      There are some references on this issue:

      A solution to capture video and frames simultaneously:

      Capture Sample with DirectX and .NET


      This article describes how to use DirectShow.NET in VB.NET

      Webcam using DirectShow.NET


      The avicap32.dll contains functions for connecting to and listing available video capture device on your system.

      Capture video from a video device such as a Webcam with VB .NET


      This programming example (VB.NET) shows how to capture AVI files and JPEG images using IC Imaging Control simultaneously.

      Image and AVI Capture


    Hope they can help you!


    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Friday, June 01, 2007 6:41 AM

All replies