Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is mask_bounds if the selection contains inner holes?
#2
Code:
non_empty, x1, y1, x2, y2 = pdb.gimp_selection_bounds(image)

AFAIK this returns the smallest rectangle that contains all selected pixels. So that would be your outer rectangle.
Reply


Messages In This Thread
RE: What is mask_bounds if the selection contains inner holes? - by Ofnuts - 08-22-2017, 05:16 PM

Forum Jump: