Zoran Bosnjak ([EMAIL PROTECTED]) wrote:
> Hello,
> can someone please explain me how to use the result from
> (gimp-drawable-get-pixel) inside the scheme script?
> The function gives me result like (4 #4"1d1d1dff").
> How do I convert this result to more friendly form like '(255 127 0), so I 
> could make some calculations with it?

The result is a list: Array-length and the array. You can access
the elements of the array via (aref array index)

But keep in mind, that processing all pixels of an image with
(gimp-drawable-get-pixel) is *slow*. You might want to use
gimp-perl or write an plugin in C.


      [EMAIL PROTECTED]       http://www.home.unix-ag.org/simon/
Gimp-developer mailing list

Reply via email to