Sat May 14, 2016 1:48 pm
if pdb.gimp_selection_value(image,x,y) > 0:
Sun May 15, 2016 4:31 am
Sun May 15, 2016 9:47 am
ofnuts wrote:See image.selection.get_pixel(x,y) (returns a one-element tuple, since the selection is a grayscale channel).
But if you are worried about performance, you shouldn't process the image pixel by pixel. The trick is to figure out what processing you can apply "en masse" to your layers so that the actual pixel transformations are handled by native operations.