title: SharpDX render 2D polygon to offscreen bitmap
body: <p>I'm wondering what is the best way to render a polygon to WPF-compatable BitmapSource using DirectX (preferably SharpDX)? </p>
  
  <p>I have to render tens of thousands of polygons like this offscreen to BitmapSource then include in a WPF applicatoin and need the fastest possible way to do it. The rendering must be performed off-screen for later showing in a WPF Image OR exporting to file. </p>
  
  <p><img src="https://i.stack.imgur.com/9XYMc.png" alt="enter image description here"></p>
  
  <p>(not actual size. Polygon size ranges from 16x16 to 24x24 pixels)</p>
  
  <p>Any suggestions welcome!</p>