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 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 find the color used on a text layer... > > Anyone have any ideas ? > > Thanks a million... > > jbaker > _______________________________________________ > Gimp-user mailing list > Gimp-user@lists.XCF.Berkeley.EDU > https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user > > -------- "It is amazing what you can accomplish if you do not care who gets the credit." -- Harry S. Truman _______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user