title: C#, Emgu webcam - choose capture size
body: <p>I'm using the Emgu library for integrating the open CV webcam features in C#. </p>
  
  <p>I use this code for choosing the capture device and setting its size:</p>
  
  <pre><code>camera = new Capture(0);
  camera.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, videoSettings.width);
  camera.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, videoSettings.height);
  </code></pre>
  
  <p>Then I display it in an imageBox like this: <code>imageBox1.Image = camera.QueryFrame();</code></p>
  
  <p>Then to capture a snapshot of the current frame I use this code:</p>
  
  <pre><code>Image&lt;Bgr, byte&gt; snapshot = camera.QueryFrame();
  snapshot.Save("snapshot.jpg");
  </code></pre>
  
  <p>Though I would want to be able to save the snapshot at a higher resolution than the preview window. </p>
  
  <p>But the problem is that as far as I know I can't create a new "Capture" object using the same webcamera. So I'm wondering if it is maybe possible to set the <code>camera.setCaptureProperty</code> height and width to let's say 1028x720 but then in some way crop it for displaying it in the imageBox with the resolution of 514x360?  </p>
  
  <p>Or is there any other way to do this?</p>