Esempio n. 1
0
        /// <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;
            }
        }
Esempio n. 2
0
 private void radioButtonRange_CheckedChanged(object sender, EventArgs e)
 {
     currentMode = BinarizationMode.Range;
 }