RSS/Atom feed Twitter
Site is read-only, email is disabled

Second try at Re: select region inside a rectangle

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

200902021622.41630.dusa.adr... Adrian Dusa 02 Feb 15:22
  select region inside a rectangle Nathan Lane 02 Feb 16:05
  select region inside a rectangle Claus Cyrny 02 Feb 17:08
  Second try at Re: select region inside a rectangle Noel Stoutenburg 02 Feb 18:18
   Second try at Re: select region inside a rectangle Noel Stoutenburg 02 Feb 18:28
    Second try at Re: select region inside a rectangle Adrian Dusa 03 Feb 12:15
Nathan Lane
2009-02-02 16:05:49 UTC (almost 16 years ago)

select region inside a rectangle

The GIMP Select tools have several modes including an additive mode which allows you to add a selection area to your current selection area, a difference mode which allows you to select the difference of two selections or subtract an area from a current selection (which sounds kind of like what you want, and an intersection mode, which allows to to make one selection, then using the select tool, select an intersecting area and take the intersection of the two selections as the final selection (which also may be what you're looking for).

Nathan

On Mon, Feb 2, 2009 at 7:22 AM, Adrian Dusa wrote:

Dear all,

I'm a Gimp newbie, using it for a long time but at an amateur level.

I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle?

I attached a .png file just for illustration, I hope attachments are allowed.

The problem is of course simplified, in the real problem I have different shapes for each rectangle (but still with comon borders, like in maps).

Thanks for any hint,

Adrian

--

Adrian Dusa

Romanian Social Data Archive

1, Schitu Magureanu Bd.

050025 Bucharest sector 5

Romania

Tel.:+40 21 3126618 \

+40 21 3120210 / int.101

Fax: +40 21 3158391

_______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Claus Cyrny
2009-02-02 17:08:22 UTC (almost 16 years ago)

select region inside a rectangle

Hi Adrian,

Adrian Dusa wrote:

Dear all,

I'm a Gimp newbie, using it for a long time but at an amateur level.

I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle?

I attached a .png file just for illustration, I hope attachments are allowed.

The problem is of course simplified, in the real problem I have different shapes for each rectangle (but still with comon borders, like in maps).

One way to accomplish this would be, to use the magic wand with the default setting. This implies that the background has just one color: otherwise, you would have to increase the threshold.

HTH,

Claus

Noel Stoutenburg
2009-02-02 18:18:22 UTC (almost 16 years ago)

Second try at Re: select region inside a rectangle

Adrian Dusa wrote:

I'm a Gimp newbie, using it for a long time but at an amateur level.

I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle?

I left a couple steps out of the one I sent privately, but this one is, (I think) more elegant anyway.

1) Add an alpha channel to the image.

2) Select the border using the "select by color" tool.

3). Cut out the border, paste it into a new layer, and hide the new layer.

4). In the base layer, invert the selection, using Select > Invert.

5). Choose your color, and fill the desired rectangle.

6) Unhide the new layer, and Merge the layers together.

7) flatten image.

ns

Noel Stoutenburg
2009-02-02 18:28:42 UTC (almost 16 years ago)

Second try at Re: select region inside a rectangle

Noel Stoutenburg wrote:

Adrian Dusa wrote:

I'm a Gimp newbie, using it for a long time but at an amateur level.

I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle?

The steps I outlined work for your attached image of two white rectangles surrounded by black lines. Depending upon the details of the actual images with which you are working, you might be able to make it work with more or fewer steps, but the principle should still hold.

ns

Adrian Dusa
2009-02-03 12:15:39 UTC (almost 16 years ago)

Second try at Re: select region inside a rectangle

Thanks very much to everyone, I have a great experience learning new tricks :) I am posting at quite a few lists, and this one is one of the most helpful and friendly.
Cudos to you all,
Adrian

On Monday 02 February 2009, Noel Stoutenburg wrote:

Noel Stoutenburg wrote:

Adrian Dusa wrote:

I'm a Gimp newbie, using it for a long time but at an amateur level.

I have the following (hopefully simple) problem: given two rectangles with a common border, is there a way to select the region *inside* one rectangle (to fill it with another color), without affecting the contents of the other rectangle?

The steps I outlined work for your attached image of two white rectangles surrounded by black lines. Depending upon the details of the actual images with which you are working, you might be able to make it work with more or fewer steps, but the principle should still hold.

ns _______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user