/// <summary> /// Handles the SelectedIndexChanged event of BinarizationModeComboBox object. /// </summary> private void binarizationModeComboBox_SelectedIndexChanged(object sender, EventArgs e) { // get binarization mode BinarizationMode mode = (BinarizationMode)binarizationModeComboBox.SelectedItem; #if !REMOVE_PDF_PLUGIN _compressionSettings.BinarizationCommand.BinarizationMode = mode; #endif if (mode == BinarizationMode.Threshold) { thresholdNumericUpDown.Visible = true; thresholdLabel.Visible = true; } else { thresholdNumericUpDown.Visible = false; thresholdLabel.Visible = false; } }
private void radioButtonRange_CheckedChanged(object sender, EventArgs e) { currentMode = BinarizationMode.Range; }