Class MatrixPosition
Matrix-based implementation of position and transformation operations for PDF document elements.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Data
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class MatrixPosition : IPosition
Constructors
MatrixPosition()
Initializes a new instance of the MatrixPosition class with an identity matrix.
Declaration
public MatrixPosition()
MatrixPosition(Matrix)
Initializes a new instance of the MatrixPosition class with a specific matrix.
Declaration
public MatrixPosition(Matrix matrix)
Parameters
System.Windows.Media.Matrix
matrix
The transformation matrix to use. |
MatrixPosition(IPosition)
Initializes a new instance of the MatrixPosition class by copying from another position.
Declaration
public MatrixPosition(IPosition other)
Parameters
IPosition
other
The position to copy transformation values from. |
Properties
Default
Gets a default matrix position instance with identity transformation.
Declaration
public static MatrixPosition Default { get; }
Property Value
MatrixPosition
A new MatrixPosition instance with identity matrix. |
Matrix
Gets the transformation matrix that defines the current position and orientation.
Declaration
public Matrix Matrix { get; }
Property Value
System.Windows.Media.Matrix
The transformation matrix containing scale, rotation, and translation values. |
Implements
Methods
Clear()
Resets all transformation values to their default state.
Declaration
public void Clear()
Implements
Clone()
Creates a deep copy of the current matrix position with all transformation values.
Declaration
public IPosition Clone()
Returns
IPosition
A new MatrixPosition instance that is a copy of this instance. |
Implements
Rotate(Double)
Applies rotation transformation by the specified angle around the origin.
Declaration
public void Rotate(double angle)
Parameters
System.Double
angle
The rotation angle in degrees. |
Implements
RotateAt(Double, Double, Double)
Applies rotation transformation by the specified angle around a center point.
Declaration
public void RotateAt(double angle, double centerX, double centerY)
Parameters
System.Double
angle
The rotation angle in degrees. |
System.Double
centerX
The X coordinate of the rotation center point. |
System.Double
centerY
The Y coordinate of the rotation center point. |
Implements
Scale(Double, Double)
Applies scaling transformation by the specified factors.
Declaration
public void Scale(double scaleX, double scaleY)
Parameters
System.Double
scaleX
The horizontal scale factor. |
System.Double
scaleY
The vertical scale factor. |
Implements
ScaleAt(Double, Double, Double, Double)
Applies scaling transformation by the specified factors around a center point.
Declaration
public void ScaleAt(double scaleX, double scaleY, double centerX, double centerY)
Parameters
System.Double
scaleX
The horizontal scale factor. |
System.Double
scaleY
The vertical scale factor. |
System.Double
centerX
The X coordinate of the scaling center point. |
System.Double
centerY
The Y coordinate of the scaling center point. |
Implements
Translate(Double, Double)
Applies translation transformation by the specified offset values.
Declaration
public void Translate(double offsetX, double offsetY)
Parameters
System.Double
offsetX
The horizontal translation offset. |
System.Double
offsetY
The vertical translation offset. |