title: Rasterizing a 2D polygon
body: <p>I need to create a binary bitmap from a closed 2D polygon represented as a list of points. Could you please point me to efficient and sufficiently simple algorithms to do that, or, even better, some C++ code?</p>
  
  <p>Thanks a lot!</p>
  
  <p>PS: I would like to avoid adding a dependency to my project. However if you suggest an open-source library, I can always look at the code, so it can be useful too.</p>