• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Rectangle in an image

Explorer ,
Jul 08, 2017 Jul 08, 2017

Copy link to clipboard

Copied

i have image that has rectangle shape in it.  i want to create rectangle in exactly same position and exactly same size on a different layer.  How to do this?

Views

397

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 08, 2017 Jul 08, 2017

If that is the only shape on a layer just copy the layer.  If it's in the Background layer then select the rectangle using the rectangle selection tool.  If the angle is not perfectly square, just use Transform selection to adjust the selections final shape and angle to match the one in the background layer

Votes

Translate

Translate
Adobe
Community Expert ,
Jul 08, 2017 Jul 08, 2017

Copy link to clipboard

Copied

If that is the only shape on a layer just copy the layer.  If it's in the Background layer then select the rectangle using the rectangle selection tool.  If the angle is not perfectly square, just use Transform selection to adjust the selections final shape and angle to match the one in the background layer

ICC programmer and developer, Photographer, artist and color management expert, Print standards and process expert.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 08, 2017 Jul 08, 2017

Copy link to clipboard

Copied

It's not the only shape. It's part of many other things in image but how do you use selection tool to match exactly that rectangle without missing one pixel while selecting?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2017 Jul 08, 2017

Copy link to clipboard

Copied

  1. Use the Pen tool to get the best match, and Ctrl click the resulting work path to load it as a selection.
  2. Copy the selection to a new layer.
  3. If you have missed a few pixels outside the selection, Free Transform the new copied layer, and make it ever so slightly larger to cover the missed pixels.
  4. If you have enclosed some erroneous pixels, lock the layer opacity, and use the Clone tool to overwrite with suitable content.

To give you better response, we'd need to see the image at a reasonable resolution.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2017 Jul 08, 2017

Copy link to clipboard

Copied

LATEST

As I mentioned above you can transform the selection to match the original rectangle as a way to match it exactly.  Or use quick mask after the rectangle selection is made and reselect that area in quick mask leaving a bit around it to see the edges and transform that area to match the rectangle you want to match.  You can zoom in to see it properly.  Or as Trevor mentioned use the pen tool at the pixel level create a work path.  Double click that path to save a path that can be renamed if you wish.  Then Command-Click (Mac) or Control-click (PC) to make the path a selection.  Make a new layer and fill that selection with your rectangle color.   

ICC programmer and developer, Photographer, artist and color management expert, Print standards and process expert.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines