Re: [Gimp-developer] (gimp-drawable-get-pixel)

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

 



Zoran Bosnjak (zoran.bosnjak@xxxxxxxx) 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.

Bye,
        Simon

-- 
      Simon.Budig@xxxxxxxxxxx       http://www.home.unix-ag.org/simon/


[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