6. Select Edit > Stroke and stroke the selection with white, 25px
7. Press Ctrl + D to deselect the selection. With the new channel still open, select filter > blur > gaussian blur of about 7 pixels
8. Next, choose Image > Adjust > Levels, and move the markers toward the center. This creates the rounded corners.
9. Now that we've created a rounded corner selection through the use of the alpha channel, it's time to create the pipe. Ctrl + click the channel to load the selection, and apply the gaussian blur filter again with the same settings as before. Your image should now look like this:
10. Now press Ctrl + C to copy the pixels in the selection.