connect points to get shape outline
I'm working on a magic wand tool. I can identify the points on the edge of an image. However, I cant' find a way to connect all those points to form the shape outline.
I tried to use 'GeneralPath' to append each point but what I got was a filled shape not the outline of the shape. I think that I would need an algorithm to correctly append the points by always joining the points near each other. Does anyone know how to do this ?

