Click or drag to resize
Pdftools logo

AffineTransform Structure

Inheritance Hierarchy
SystemObject
  SystemValueType
    PdfTools.Toolbox.Geometry.RealAffineTransform

Namespace: PdfTools.Toolbox.Geometry.Real
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.2.0+708f7116d933787a0712d56133e4c2c9bf21e5e3
Syntax
C#
public struct AffineTransform

The AffineTransform type exposes the following members.

Properties
 NameDescription
Public propertyA

The 'a' matrix element.

This is the 'a' element in the affine transformation matrix [a b 0; c d 0; e f 1]
Public propertyB

The 'b' matrix element.

This is the 'b' element in the affine transformation matrix [a b 0; c d 0; e f 1]
Public propertyC

The 'c' matrix element.

This is the 'c' element in the affine transformation matrix [a b 0; c d 0; e f 1]
Public propertyD

The 'd' matrix element.

This is the 'd' element in the affine transformation matrix [a b 0; c d 0; e f 1]
Public propertyE

The 'e' matrix element.

This is the 'e' element in the affine transformation matrix [a b 0; c d 0; e f 1]
Public propertyF

The 'f' matrix element.

This is the 'f' element in the affine transformation matrix [a b 0; c d 0; e f 1]
Public propertyStatic memberIdentity

The identity transform

Top
Methods
 NameDescription
Public methodConcatenate

Concatenate transform with other transform.

Concatenating a transform with an other transform is equivalent to left-multiplying the transform's matrix with with the other transform's matrix.
Public methodInvert

Invert the transform

A transform usually maps from the transformed coordinate system to the untransformed coordinate system. Use this method to create the reverse transform.
Public methodRotate

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:

Public methodScale

Scale.

Scaling is obtained by [sx 0 0 sy 0 0]. This scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as sx and sy units, respectively, in the previous coordinate system.
Public methodSkew

Skew.

Skew is specified by [1 tan a tan b 1 0 0], which skews the x axis by an angle a and the y axis by an angle b.
Public methodTransformPoint

Transforms the given point.

Public methodTransformQuadrilateral

Transform a given quadrilateral

If the input quadrilateral is a parallelogram, then the output is also a parallelogram.
Public methodTransformRectangle

Transform the given rectangle

For a general affine transformation, the returned Quadrilateral is a parallelogram.
Public methodTranslate

Translate.

Translations are specified as [1 0 0 1 tx ty], where tx and ty are the distances to translate the origin of the coordinate system in the horizontal and vertical dimensions, respectively.
Top
See Also