Click or drag to resize
Pdftools logo

AffineTransformRotate Method

Rotate.

Rotations are produced by [cos(a) sin(a) -sin(a) cos(a) 0 0], which has the effect of rotating the coordinate system axes by an angle "a" in counterclockwise direction around the origin.

If the given center is not , then the rotation is performed around the given center point, which is equivalent to the following sequence:


Namespace: PdfTools.FourHeights.PdfToolbox.Geometry.Real
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public void Rotate(
	double angle,
	Point? center
)

Parameters

angle  Double
The angle of the rotation in degrees.
center  NullablePoint
The center of the rotation. If then the origin (0/0) is taken as center.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf the affine transform is singular, e.g. default initialized. (Use Identity as an initial value.)
See Also