option_descriptors[option].name = "foregroundboldnessaggressiveness";
option_descriptors[option].title = "foregroundboldnessaggressiveness";
option_descriptors[option].desc = "foregroundboldnessaggressiveness";
- option_descriptors[option].cap = SANE_CAP_SOFT_DETECT;
- option_descriptors[option].constraint_type = SANE_CONSTRAINT_NONE;
- option_descriptors[option].constraint.string_list = NULL;
+ option_descriptors[option].cap = SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT;
+ option_descriptors[option].constraint_type = SANE_CONSTRAINT_RANGE;
+ SANE_Range* constraint_foreground_boldness_aggressiveness = malloc(sizeof(SANE_Range));
+ constraint_foreground_boldness_aggressiveness->min = -10;
+ constraint_foreground_boldness_aggressiveness->max = 10;
+ constraint_foreground_boldness_aggressiveness->quant = 1;
+ option_descriptors[option].constraint.range = constraint_foreground_boldness_aggressiveness;
break;
case 17:
option_descriptors[option].name = "backgroundsmoothingmode";