public void Calculate(DataIO data) { data.CalCoef(data); data.CalXYZ(data); data.Calxyz(); data.Caln(); data.CalT(); data.CalBrightness(data); }
private void btnBrightness_Click(object sender, RoutedEventArgs e) { //MessageBox.Show(inputData.BasicB[0].ToString()); //double L = inputData.Lr + inputData.Lg + inputData.Lb; //MessageBox.Show("亮度是: " + L.ToString() + '\n' + "Lr = " + inputData.Lr.ToString() // + '\n' + "Lg = " + inputData.Lg.ToString() + '\n' + "Lb = " + inputData.Lb.ToString()); //设置三基色坐标 TrisBasic trisBasic = new TrisBasic(inputData); trisBasic.Show(); var test = inputData.CalBrightness(inputData); dispLabel.Text = test; }