Re: Detecting "closure" of selection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2010-10-10 at 14:55 +0200, Ofnuts wrote:

> > (let ((count (cdddr (gimp-histogram (car (gimp-image-get-selection image))
> >                                       HISTOGRAM-VALUE
> >                                       255
> >                                       255))))
> >     (= (car count) (cadr count)) ; compare num of all pixels to all white pixels
> >     )
> 
> Exactly what the doctor ordered. Thanks (and to Rob...). However, the 
> only documentation I found of this function was in the API browser of 
> the python-fu console. I couldn't find it in the files I sampled at 
> <http://developer.gimp.org/api/2.0/index.html>. Where is it documented?

http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpcolor.html#gimp-histogram


Sven


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


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux