title: Create java.awt.geom.Area from points
body: <p>I am trying to create a java.awt.geom.Area (or any object that uses the Shape interface) to describe a set of points that create a complex shape. Here is an example: </p>
  
  <p><img src="https://i.stack.imgur.com/aGBuT.png" alt="Yellow Blobs"></p>
  
  <p>I am trying to create an Area object (or many Area objects) to describe the yellow area. I have an easy way of obtaining the coordinates of the yellow pixels, but I don't know how to create an Area object (or multiple Area objects) that contains all the yellow points. </p>
  
  <p>This stackoverflow question seems very relevant <a href="https://stackoverflow.com/questions/16326068/create-closed-polygon-from-boundary-points">Create closed polygon from boundary points</a>) but is using Matlab. I think someone else asked a very similar question here (<a href="https://stackoverflow.com/questions/1369313/convert-a-list-java-awt-geom-point2d-to-a-java-awt-geom-area">Convert a list java.awt.geom.Point2D to a java.awt.geom.Area</a>) but the links provided in the answers are dead.</p>