Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Volunteers needed to run a select-polygon test
#6
I screwed up the test. the polygon points were misconfigured. This is a revised version, but the error persists for me. The image has no selection.

MrsP-from-C, thank you for your help. I could still use a verification with this test. Any feedback could make Gimp development team's job easier.

Code:
       procedure = Gimp.get_pdb().lookup_procedure(
           'gimp-image-select-polygon'
       )
       config = procedure.create_config()
       config.set_property('image', image)
       config.set_property('operation', Gimp.ChannelOps.REPLACE)

       # Define a square of four points
       # positioned at the topleft of the image.
       # (x, y, ...)
       config.set_property(
           'segs', (
               0., 0.,
               250., 0.,
               250., 250.,
               0., 250.
           )
       )
       procedure.run(config)

The 'image.select_polygon' function works for me too.

With gimp-image-select-polygon', I believe the problem lies with 'GimpDoubleArray' which could have a wider impact.

.zip   SelectPolygonTest v.01.zip (Size: 1.51 KB / Downloads: 45)
Reply


Messages In This Thread
RE: Volunteers needed to run a select-polygon test - by gasMask - 11-19-2024, 02:28 PM

Forum Jump: