Windows Dev Center

Matrix3x2F::Skew method

Creates a skew transformation that has the specified x-axis and y-axis values and center point.

Syntax


static Matrix3x2F Skew(
   FLOAT         angleX,
   FLOAT         angleY,
   D2D1_POINT_2F centerPoint = D2D1::Point2F()
);

Parameters

angleX

Type: FLOAT

The x-axis skew angle, which is measured in degrees counterclockwise from the y-axis.

angleY

Type: FLOAT

The y-axis skew angle, which is measured in degrees clockwise from the x-axis.

centerPoint

Type: D2D1_POINT_2F

The point about which the skew is performed.

Return value

Type: Matrix3x2F

The new skew transformation.

Remarks

The typical y-axis skew means skews the angle in degrees counterclockwise from the x-axis. However, because the y-axis in Direct2D is inverted, the y-axis skew angle in Direct2D means skew the angle in degrees clockwise from the x-axis.

For example, the following illustration shows the rectangle skewed with y-axis skew angle of 30 degrees. Notice that the angle is 30 degrees clockwise from the x-axis.

Illustration of a rectangle that is skewed along the y-axis for 30 degrees

Examples

For an example, see How to Skew an Object.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

D2D1

Header

D2d1helper.h

Library

D2d1.lib

DLL

D2d1.dll

See also

Matrix3x2F

 

 

Community Additions

ADD
Show:
© 2015 Microsoft