Point.Multiply(Point, Matrix) 方法

定义

使用指定的 Point 结构转换指定的 Matrix 结构。

public:
 static System::Windows::Point Multiply(System::Windows::Point point, System::Windows::Media::Matrix matrix);
public static System.Windows.Point Multiply (System.Windows.Point point, System.Windows.Media.Matrix matrix);
static member Multiply : System.Windows.Point * System.Windows.Media.Matrix -> System.Windows.Point
Public Shared Function Multiply (point As Point, matrix As Matrix) As Point

参数

point
Point

要转换的点。

matrix
Matrix

变换矩阵。

返回

已转换的点。

示例

以下示例演示如何使用 Multiply 方法将 结构乘MatrixPoint 结构。

private Point multiplyPointByMatrixExample()
{
      
    Point point1 = new Point(10, 5);
    Matrix matrix1 = new Matrix(40, 50, 60, 70, 80, 90);

    // Multiplies a Point by a Matrix.
    // pointResult is equal to (780,940).
    Point pointResult = Point.Multiply(point1, matrix1);

    return pointResult;
}

适用于

另请参阅