title: Frame Capture using Matrox Commands
body: <p>I'm working on a project where I have to set the fps of a video stream (as 10) from a camera and grab a frame every 5th frame. I'm working on a program that has already been half written by someone else. The thing is, they have used Matrox Framegrabber dlls. There is also Matrox Frame Grabber on the device. But I cant find any commands for framegrab in C#. I found the following code for C++.</p>
  
  <pre><code>MIL_ID MdispAlloc(SystemId, DispNum, DispFormat, InitFlag,
  DisplayIdPtr)
  </code></pre>
  
  <p>where</p>
  
  <pre><code>MIL_ID SystemId; System identifier
  long DispNum; Display number
  char *DispFormat; Display format name or file name
  long InitFlag; Initialization flag
  MIL_ID *DisplayIdPtr; Storage location for the display identifier
  </code></pre>
  
  <p>The above command allocates a display. Can someone please help me write the program in C#. Also, anyone with experience in Matrox dlls please give me an idea on how to approach frame capture and fps set up.
  Thanks.</p>