Re: [Gimp-user] Scripting questions...

2006-11-26 Thread Saul Goode
A destructive way (i.e., work on a duplicate) of doing this would be to scale your layer down to 1x1 pixels and then fetch the color of that pixel (using the PDB function 'gimp-drawable-get-pixel') > Using python, I'm trying to find the color that is used on a layer. The > layer has an alpha chan

Re: [Gimp-user] Scripting questions...

2006-11-26 Thread David Gowers
On 11/27/06, Jerry Baker <[EMAIL PROTECTED]> wrote: Using python, I'm trying to find the color that is used on a layer. The layer has an alpha channel and it only uses 1 color on the layer. The problem is, I don't know where the colored pixels are. It may only be one pixel anywhere on the layer

[Gimp-user] Scripting questions...

2006-11-26 Thread Jerry Baker
Using python, I'm trying to find the color that is used on a layer. The layer has an alpha channel and it only uses 1 color on the layer. The problem is, I don't know where the colored pixels are. It may only be one pixel anywhere on the layer, or the entire layer may be filled. I also need to