Matrix.Skew Method (Double, Double)

 

Appends a skew of the specified degrees in the x and y dimensions to this Matrix structure.

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

public void Skew(
	double skewX,
	double skewY
)

Parameters

skewX
Type: System.Double

The angle in the x dimension by which to skew this Matrix.

skewY
Type: System.Double

The angle in the y dimension by which to skew this Matrix.

This example shows how to skew a Matrix structure.

private Matrix skewExample()
{

    Matrix myMatrix = new Matrix(5, 10, 15, 20, 25, 30);

    myMatrix.Skew(45, 180);


    // myMatrix is equal to (15, 10, 35, 20, 55, 30).
    return myMatrix;

}

.NET Framework
Available since 3.0
Return to top
Show: