Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Multiply Operator

Point.Multiply Operator

Transforms the specified Point by the specified Matrix.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public static Point operator *(
	Point point,
	Matrix matrix
)

Parameters

point
Type: System.Windows.Point

The point to transform.

matrix
Type: System.Windows.Media.Matrix

The transformation matrix.

Return Value

Type: System.Windows.Point
The result of transforming the specified point using the specified matrix.

The following example shows how to multiply a Point by a Matrix using the overloaded (*) operator.

private Point overloadedMultiplyPointByMatrixOperatorExample()
{

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

    // Multiply the Point by the Matrix using the overloaded 
    // (*) operator. 
    // pointResult is equal to (780,940).
    Point pointResult = point1 * matrix1;

    return pointResult;

}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft