app: Add diagonal_neighbors parameter to gimp_channel_select_fuzzy()

and propagate it to gimp_pickable_contiguous_region_by_seed(), in
preperation for adding a diagonal-neighbors setting to PDB.
This commit is contained in:
Ell 2016-01-11 11:02:27 +00:00 committed by Michael Natterer
parent 350c7ca338
commit e0b1aa1c26
6 changed files with 10 additions and 2 deletions

View File

@ -494,6 +494,7 @@ gimp_channel_select_fuzzy (GimpChannel *channel,
gfloat threshold,
gboolean select_transparent,
GimpSelectCriterion select_criterion,
gboolean diagonal_neighbors,
GimpChannelOps op,
gboolean antialias,
gboolean feather,
@ -519,7 +520,7 @@ gimp_channel_select_fuzzy (GimpChannel *channel,
threshold,
select_transparent,
select_criterion,
FALSE /* no diagonal neighbors */,
diagonal_neighbors,
x, y);
if (! sample_merged)

View File

@ -130,6 +130,7 @@ void gimp_channel_select_fuzzy (GimpChannel *channel,
gfloat threshold,
gboolean select_transparent,
GimpSelectCriterion select_criterion,
gboolean diagonal_neighbors,
GimpChannelOps op,
gboolean antialias,
gboolean feather,

View File

@ -129,6 +129,7 @@ image_select_contiguous_color_invoker (GimpProcedure *procedure,
pdb_context->sample_threshold,
pdb_context->sample_transparent,
pdb_context->sample_criterion,
FALSE /* no diagonal neighnors */,
operation,
pdb_context->antialias,
pdb_context->feather,

View File

@ -275,6 +275,7 @@ fuzzy_select_invoker (GimpProcedure *procedure,
threshold / 255.0,
FALSE /* don't select transparent */,
GIMP_SELECT_CRITERION_COMPOSITE,
FALSE /* no diagonal neighbors */,
operation,
antialias,
feather,
@ -332,6 +333,7 @@ fuzzy_select_full_invoker (GimpProcedure *procedure,
threshold / 255.0,
select_transparent,
select_criterion,
FALSE /* no diagonal neighbors */,
operation,
antialias,
feather,

View File

@ -143,6 +143,7 @@ HELP
pdb_context->sample_threshold,
pdb_context->sample_transparent,
pdb_context->sample_criterion,
FALSE /* no diagonal neighnors */,
operation,
pdb_context->antialias,
pdb_context->feather,

View File

@ -236,6 +236,7 @@ sub fuzzy_select {
threshold / 255.0,
FALSE /* don't select transparent */,
GIMP_SELECT_CRITERION_COMPOSITE,
FALSE /* no diagonal neighbors */,
operation,
antialias,
feather,
@ -294,8 +295,9 @@ sub fuzzy_select_full {
sample_merged,
x, y,
threshold / 255.0,
select_transparent,
select_transparent,
select_criterion,
FALSE /* no diagonal neighbors */,
operation,
antialias,
feather,