Working With the Pen Tool in Photoshop
Photoshop has multiple pen tools. The standard pen tool draws with the greatest precision. The freeform pen tool draws paths as if you were drawing with pencil on paper, and the magnetic pen option lets you draw a path that snaps to the edges of defined areas in your image. You can use the pen tools along with the shape tools to create complex shapes. view source