語言

Matrix.Append(Matrix) 方法

定義

將指定的 Matrix 結構附加於此 Matrix 結構上。

public:
 void Append(System::Windows::Media::Matrix matrix);
public void Append(System.Windows.Media.Matrix matrix);
member this.Append : System.Windows.Media.Matrix -> unit
Public Sub Append (matrix As Matrix)

參數

matrix
Matrix

Matrix該結構將附加於此Matrix結構之上。

範例

以下範例說明如何將一個 Matrix 結構附加到另一個 Matrix 結構上。

private Matrix rotateAboutPointExample()
{
    
    // Creating a Matrix structure.
    Matrix myMatrix = new Matrix(5, 10, 15, 20, 25, 30);
    
    // Rotate the matrix 90 degrees about the point (100,100).
    // myMatrix becomes equal to (-10, 4, -20, 15, 170, 25).
    myMatrix.RotateAt(90, 100, 100);
    
    return myMatrix; 
}

備註

此操作等同於將此 Matrix 結構乘以參數 matrix。 不過矩陣乘法不是交換的,因此此操作與乘 matrix 以此 Matrix 結構不同;也就是說,(此 * matrix) 與 (matrix * 此) 不同。

適用於

另請參閱