Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a mask from a selection?
#5
(02-07-2026, 09:18 PM)thatersc57 Wrote: Sorry, I must have been unclear. I want to create a mask from a selection using python code. I would very much like to know which gimp procedures to use for achieving this. I am thinking of edit_copy and edit_paste_new_image, but the first has a drawable is argument and the second an image. So maybe it's not straightforward.

I think I already did that, or something similar. For a start, it's good to know that  masks and selection are actually just channels with special purpose.So, all methods for channels apply.

I can look into it tomorrow if you still need it. Now I have to go to sleep. ;-)
Reply


Messages In This Thread
How to make a mask from a selection? - by ersc57 - 02-07-2026, 08:54 AM
RE: How to make a mask from a selection? - by Scallact - 02-08-2026, 02:13 AM

Forum Jump: