private void radioButtonErrorDiffusionDithering_CheckedChanged(object sender, EventArgs e)
 {
     if (radioButtonErrorDiffusionDithering.Checked)
     {
         colorsReductionAlgorithm = new ErrorDiffusionDithering(GetDitheringParams());
         UpdateModifiedImage();
     }
 }
 private void radioButtonOrderedDitheringRelative_CheckedChanged(object sender, EventArgs e)
 {
     if (radioButtonOrderedDitheringRelative.Checked)
     {
         colorsReductionAlgorithm = new OrderedDitheringRelative(GetDitheringParams(), orderedDitheringMatrices);
         UpdateModifiedImage();
     }
 }
 private void radioButtonPopularityAlgorithm_CheckedChanged(object sender, EventArgs e)
 {
     if (radioButtonPopularityAlgorithm.Checked)
     {
         colorsReductionAlgorithm = new PopularityAlgorithm((int)numericUpDownK.Value);
         UpdateModifiedImage();
     }
 }