# Gimp.context_set_diagonal_neighbors

    function context_set_diagonal_neighbors(diagonal_neighbors: Boolean): Boolean {
        // Gjs wrapper for gimp_context_set_diagonal_neighbors()
    }

Set the diagonal neighbors setting.

This procedure modifies the diagonal neighbors setting. If the affected region of an operation is based on a seed point, like when doing a seed fill, then, when this setting is TRUE, all eight neighbors of each pixel are considered when calculating the affected region; in contrast, when this setting is FALSE, only the four orthogonal neighbors of each pixel are considered.

This setting affects the following procedures: Gimp.Image.prototype.select_contiguous_color, Gimp.Drawable.prototype.edit_bucket_fill.

Since 2.10

diagonal_neighbors

  The diagonal neighbors setting.

Returns

  TRUE on success.