11-19-2024, 02:28 PM
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.
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.
SelectPolygonTest v.01.zip (Size: 1.51 KB / Downloads: 45)
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.
