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 與這個) (不同。

適用於

另請參閱