Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Nov 2007
    Posts
    108
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Creating rounded corners with no fill

    I'm trying to create an image in Photoshop of a rounded-corner rectangle. This is straight-forward if I want a rectangle filled with color, but what I'm trying to do is create one that has NO fill, that is just a 1 pixel border around white space.

    Anyone know how to do this? I've searched the web, but can only find articles on creating filled rounded-rectangles.

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    how about this:

    1) make a new file.
    2) on a new layer use the rounded rectangle tool to make a rounded rectangle.
    3) rasterize the layer.
    4) crtl+left click the layer to select the rectangle
    5) Select > Modify > Contract > 2px
    6) clear selction

    should give you something like the attached image

    I used a 30px border radius.
    Attached Thumbnails Attached Thumbnails Creating rounded corners with no fill-roundedborder.jpg  
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • Users who have thanked harbingerOTV for this post:

    loamguy1 (11-11-2008)

  • #3
    Regular Coder
    Join Date
    Nov 2007
    Posts
    108
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by harbingerOTV View Post
    how about this:

    1) make a new file.
    2) on a new layer use the rounded rectangle tool to make a rounded rectangle.
    3) rasterize the layer.
    4) crtl+left click the layer to select the rectangle
    5) Select > Modify > Contract > 2px
    6) clear selction

    should give you something like the attached image

    I used a 30px border radius.
    That worked really well!! It seems so simple, yet I would never have been able to figure that out.

    Thanks a lot!!

  • #4
    Regular Coder FWDrew's Avatar
    Join Date
    Apr 2008
    Location
    Missouri
    Posts
    380
    Thanks
    38
    Thanked 45 Times in 43 Posts
    In addition to the nice technique Harbinger sugggested, you could simplify it to this:

    -Grab the rounded rectangle tool and select "paths" instead of shapes at the top left.
    -Right click on your selection and click stroke path.

    However you prefer to do it is the best though

    Regards,

    Drew
    Dev-Tips.com || Employee at the Envato Network || My Portfolio

  • #5
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is really helpful but how can I make the line that I get thicker than it already is?

    Thanks,
    Jake

  • #6
    New Coder
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    53
    Thanks
    0
    Thanked 6 Times in 6 Posts
    1. Make a rounded rectangle
    2. Layer > Rasterize > Shape
    2. Set fill to 0% (the one above your layer list, and beneath your opacity changer)
    3. Right click on ur rounded rectangle layer
    4. Blending options
    5. Enable stroke
    6. Go to the stroke tab.
    7. Change the settings
    8. Click OK
    9. ??????
    10. Profit

  • #7
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I Just tried this and it works. Thank-you very much

  • #8
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,786
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    There we have one of those things in which Fireworks is just superior to Photoshop. So many steps to create a rounded rectangle with no fill. In Fireworks you just create a new file with transparent canvas color, choose the rectangle tool and draw a rectangle, and then adjust the corner radius in the properties panel. As easy as pie.

  • #9
    New Coder
    Join Date
    May 2010
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yap I have experienced that many times Fireworks give simple solution than photoshop then what is the reason that photoshop is always the 1st choice of most of the people even me to try to do ting with photoshop 1st..

  • #10
    New Coder
    Join Date
    May 2006
    Posts
    81
    Thanks
    0
    Thanked 11 Times in 11 Posts
    Its not that there are many steps it is that there are many different ways so achieve the results in photoshop and everyone prefers different ways, depending on what you are doing.
    Photoshop can do it just as easily as FW; create a path with rounded rectangle tool and then stroke the path.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •