title: C# + DirectShow.NET = Simple WebCam access?
body: <p>I have found an <a href="http://blogs.msdn.com/markhsch/archive/2007/11/19/c-webcam-user-control-source.aspx" rel="nofollow noreferrer">example</a> for accessing a webcam in C#. The example uses the <a href="http://directshownet.sourceforge.net/" rel="nofollow noreferrer">DirectShow.NET</a> library. I have tried to understand the code, but so far the only thing I could figure out is that somehow the usercontrol calls directshow to draw directly to the surface of the user control.</p>
  
  <p>I want to access each frame and put it into a Bitmap object. How can I tell when a new frame arrived? How can I capture this new frame into a Bitmap Object?</p>
  
  <p>This might be simple to answer if you know your way around DirectShow.NET.</p>