Пример #1
0
 public void SetColorMatrix(ColorMatrix cm)
 {
     ColorMatrix       = cm;
     selectedTheme     = settings.GetMatrixTheme(rbColorScale.Checked);
     selectedTheme.Dia = 20;// (int)eCircleDia.Value;
     ColorMatrix.SetTheme(selectedTheme);
     Image = ColorMatrix.CreateVisualMatrix(PositiveThreshold, NegativeThreshold);
 }
Пример #2
0
        private void rbColorScale_CheckedChanged(object sender, EventArgs e)
        {
            if (ColorMatrix == null)
            {
                Image = null;
                return;
            }

            selectedTheme     = settings.GetMatrixTheme(rbColorScale.Checked);
            selectedTheme.Dia = 20;// (int)eCircleDia.Value;
            ColorMatrix.SetTheme(selectedTheme);
            Image = ColorMatrix.CreateVisualMatrix(PositiveThreshold, NegativeThreshold);
        }
Пример #3
0
 public void SetThreshold(double posThreshold, double negThreshold)
 {
     PositiveThreshold = posThreshold;
     NegativeThreshold = negThreshold;
     Image             = ColorMatrix?.CreateVisualMatrix(PositiveThreshold, NegativeThreshold);
 }