When you mask in Photoshop, you create a new layer above the existing layer in your document and then use the Mask tool to select all of the pixels in the layer that you want to mask. Then, you use the Free Transform tool to rotate the pixels so that they are all in the same orientation.