0
我想乘以2矩陣。我是using System.Windows.Media
,但我仍然得到矩陣下的紅色扭曲。我可以告訴using System.Windows.Media
正在註冊,因爲它要我決定是否要爲我的Color
s使用System.Windows.Media
或System.Drawing
。這是我的代碼:C#矩陣乘法庫
Matrix matrix1 = new Matrix(5, 10, 15, 20, 25, 30);
Matrix matrix2 = new Matrix(2, 4, 6, 8, 10, 12);
// matrixResult is equal to (70,100,150,220,240,352)
Matrix matrixResult = Matrix.Multiply(matrix1, matrix2);
// matrixResult2 is also
// equal to (70,100,150,220,240,352)
Matrix matrixResult2 = matrix1 * matrix2;
任何建議爲什麼代碼不拾起using System.Windows.Media
?我已經添加了PresentationCore參考。