MatrixPosition
Matrix-backed implementation of IPosition for precise 2D transforms when placing content in fixed documents.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Data
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class MatrixPosition : IPosition
Inheritance: objectMatrixPosition
Implements:
Constructors
Create a new instance with an identity matrix.
public MatrixPosition()
Create a new instance by copying the matrix from another position.
public MatrixPosition(IPosition other)
The position to copy transformation values from.
Create a new instance using the provided transformation matrix.
public MatrixPosition(Matrix matrix)
The transformation matrix to use.
Methods
Resets all transformation values to their default state.
public void Clear()
Implements:
Creates a deep copy of the current matrix position with all transformation values.
public IPosition Clone()
A new MatrixPosition instance that is a copy of this instance.
Implements:
Applies rotation transformation by the specified angle around the origin.
Applies rotation transformation by the specified angle around a center point.
Applies scaling transformation by the specified factors around a center point.
public void ScaleAt(double scaleX, double scaleY, double centerX, double centerY)
The horizontal scale factor.
scaleYdoubleThe vertical scale factor.
centerXdoubleThe X coordinate of the scaling center point.
centerYdoubleThe Y coordinate of the scaling center point.
Implements:
Properties
Returns a new instance with identity transformation for convenience.
public static MatrixPosition Default { get; }
A new MatrixPosition instance with identity matrix.
Matrix
Matrix
Transformation matrix that defines the current position, scale, and rotation.
public Matrix Matrix { get; }
The transformation matrix containing scale, rotation, and translation values.
Implements: