title: How to cut out a polygon shaped part of an image?
body: <p>I have a polygon with the following vertices...</p>
  
  <pre><code>20,20
  20,30
  40,30
  </code></pre>
  
  <p>and an image. I want to cut the polygon shaped part out of the image to form a new one. Is there any algorithm to do so?
  I am using Processing if that's anything helpful.</p>
  
  <p>Thanks in advance.</p>