Click or drag to resize
Pdftools logo

AffineTransformTransformRectangle Method

Transform the given rectangle

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

Namespace: PdfTools.Toolbox.Geometry.Real
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.12.0+5e7853f3b1a241c2ec0dd9e8fc4b9015d17a37d8
Syntax
C#
public Quadrilateral TransformRectangle(
	Rectangle original
)

Parameters

original  Rectangle
the rectangle to be transformed

Return Value

Quadrilateral
the transformed rectangle. For a general affine transform this is a parallelogram.
Exceptions
ExceptionCondition
InvalidOperationExceptionif the affine transform is singular, e.g. default initialized. (Use Identity as an initial value.)
See Also