Re: [Gimp-developer] Detecting closure of selection

2010-10-10 Thread Ofnuts
On 10/10/2010 04:01, saulgo...@flashingtwelve.brickfilms.com wrote: Quoting Ofnutsofn...@laposte.net: Is there a practical, fast way, to detect this case, i.e, that the selection covers the whole layer (or image?) and that no pixels remain unselected? I assume that inverting the selection

Re: [Gimp-developer] Detecting closure of selection

2010-10-09 Thread Owen
Assume I have a selection on small area (for instance a 20px circle), and I invert it. Now, if I grow the selection by a sufficient amount (10px in this case), everything gets selected. Is there a practical, fast way, to detect this case, i.e, that the selection covers the whole layer (or

Re: [Gimp-developer] Detecting closure of selection

2010-10-09 Thread Ofnuts
On 09/10/2010 23:24, Owen wrote: Assume I have a selection on small area (for instance a 20px circle), and I invert it. Now, if I grow the selection by a sufficient amount (10px in this case), everything gets selected. Is there a practical, fast way, to detect this case, i.e, that the

Re: [Gimp-developer] Detecting closure of selection

2010-10-09 Thread David Gowers (kampu)
On Sun, Oct 10, 2010 at 7:47 AM, Ofnuts ofn...@laposte.net wrote:  Assume I have a selection on small area (for instance a 20px circle), and I invert it. Now, if I grow the selection by a sufficient amount (10px in this case), everything gets selected. Is there a practical, fast way, to

Re: [Gimp-developer] Detecting closure of selection

2010-10-09 Thread Ofnuts
On 10/10/2010 00:22, David Gowers (kampu) wrote: On Sun, Oct 10, 2010 at 7:47 AM, Ofnutsofn...@laposte.net wrote: Assume I have a selection on small area (for instance a 20px circle), and I invert it. Now, if I grow the selection by a sufficient amount (10px in this case), everything gets

Re: [Gimp-developer] Detecting closure of selection

2010-10-09 Thread Rob Antonishen
Thinking off the top of my head, you could make a histogram call to the selection channel at 255 (fully selected) and see if the returned pixel count equals the number of pixels (width x height). On 10/9/10, Ofnuts ofn...@laposte.net wrote: On 10/10/2010 00:22, David Gowers (kampu) wrote:

Re: [Gimp-developer] Detecting closure of selection

2010-10-09 Thread saulgoode
Quoting Ofnuts ofn...@laposte.net: Is there a practical, fast way, to detect this case, i.e, that the selection covers the whole layer (or image?) and that no pixels remain unselected? I assume that inverting the selection again and testing for empty would work, but that would be two