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

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

 



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 second question is: What is the best way to calculate how one pixel match 
the other pixel by the color (result between 0-no match at all and 1-same 
color)? A simple scheme example would be great.

Thank you for your answer.

best regards,
Zoran Bosnjak


[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