2010
Michael Natterer
Create a polygonal selection over the specified image.
This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. This procedure is affected by the following context setters: 'gimp-context-set-antialias', 'gimp-context-set-feather', 'gimp-context-set-feather-radius'.
unknown
Type | Name | Description |
---|---|---|
PF_IMAGE | image | The image |
PF_INT | operation | The selection operation { CHANNEL-OP-ADD (0), CHANNEL-OP-SUBTRACT (1), CHANNEL-OP-REPLACE (2), CHANNEL-OP-INTERSECT (3) } |
PF_INT | num-segs | Number of points (count 1 coordinate as two points) (num-segs >= 2) |
unknown | segs | Array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y} |
None