(03-01-2024, 09:48 PM)Ofnuts Wrote:(03-01-2024, 08:31 PM)gimpygirl Wrote:
- how to delete the selection from the image, made by gimp_image_select_color?
You didn't search much, did you?
(from that point of view using Gimp in English helps a lot because the API names are quite close to the names in the English UI...)
Yes, I now see why I don't find anything
"clear" gives 0 results if you use another language!
You can't even find it when using translated words...
So I think I switch gimp to English
It doesn't work if I use this for selecting red. in gimp the selected color doesn't change (i have image opened)
Code:
pdb.gimp_image_select_color(image, CHANNEL_OP_REPLACE, timg, (255,0,0))
or this
Code:
pdb.gimp_image_select_color(image, CHANNEL_OP_REPLACE, tdrawable, (255,0,0))
What parameter must be in there?
See my code in the beginning
When this line works, the foreground color here should appear as the color you put in the code, right?