BTW: Photoshop has this annoying habit of rounding the corners when you stroke a rectangle. If you want sharp corners, make sure you stroke "inside" your selection, rather than outside or on center. If you're trying to be precise, it might be a little difficult since you have to draw your selection based on the outside dimensions (including the stroke width.) Yeah, PITA, I know.





by: casinnolaPosted on 2009-08-21 at 09:16:51ID: 25153345
This is one of those things that seems like it should be easier. There are several ways of doing it. Here's one:
With your Layers panel open, click the "Create a New Layer" button at the bottom to create a new blank layer where you'll put your rectangle.
Use the Rectangular Marquee to drag out a rectangle.
From the Edit menu, click "Stroke". In the dialog box, input the width and color of the stroke you want, as well as whether you want the stroke to go inside, outside, or centered on your selection.
After you've applied the stroke, hit Ctrl-D to deselect and make the "marching ants" go away.
Like I said, this is one of those little chores that is much more intuitively implemented in drawing applications. But because PS has its roots in pixel-based photo manipulation rather than vector-based drawing, you have to do a little extra legwork.
And BTW: there are probably 25 other ways of drawing a rectangle in PS. This was just the first method that popped in my mind.