Matrix.Append(Matrix) 方法

定義

在這個 Matrix 結構之後加上指定的 Matrix 結構。Appends the specified Matrix structure to this Matrix structure.

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 結構。The Matrix structure to append to this Matrix structure.

範例

下列範例顯示如何將 Matrix 結構附加至另一個 Matrix 結構。The following example shows how to append a Matrix structure to another Matrix structure.

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 參數的方式相同 matrixThis operation is the same as multiplying this Matrix structure by the parameter matrix. 雖然矩陣乘法不是可交換的,但這項作業與此結構的參數相乘不同 matrix Matrix ; 也就是說, (這個 * matrix) 與 (matrix * this) 不同。Matrix multiplication is not commutative, though, so this operation is not the same as multiplying the parameter matrix by this Matrix structure; that is, (this * matrix) is not the same as (matrix * this).

適用於

另請參閱