Gimp.Image.select_contiguous_color

@accepts(Gimp.Image, Gimp.ChannelOps, Gimp.Drawable, float, float)
@returns(bool)
def select_contiguous_color(self, operation, drawable, x, y):
    # Python wrapper for gimp_image_select_contiguous_color()
  

Create a selection by selecting all pixels around specified coordinates with the same (or similar) color to that at the coordinates.

This tool creates a contiguous selection over the specified image. A contiguous color selection is determined by a seed fill under the constraints of the current context settings. Essentially, the color at the specified coordinates (in the drawable) is measured and the selection expands outwards from that point to any adjacent pixels which are not significantly different (as determined by the threshold and criterion context settings). This process continues until no more expansion is possible. If antialiasing is turned on, the final selection mask will contain intermediate values based on close misses to the threshold bar at pixels along the seed fill boundary.

This procedure is affected by the following context setters: Gimp.context_set_antialias, Gimp.context_set_feather, Gimp.context_set_feather_radius, Gimp.context_set_sample_merged, Gimp.context_set_sample_criterion, Gimp.context_set_sample_threshold, Gimp.context_set_sample_transparent, Gimp.context_set_diagonal_neighbors.

In the case of a merged sampling, the supplied drawable is ignored. If the sample is merged, the specified coordinates are relative to the image origin; otherwise, they are relative to the drawable's origin.

Since 2.8

self

The affected image.

operation

The selection operation.

drawable

The affected drawable.

x

x coordinate of initial seed fill point: (image coordinates).

y

y coordinate of initial seed fill point: (image coordinates).

Returns