StructRadMatrix
Represents a light-weight 3*3 Matrix to be used for GDI+ transformations.
Definition
Namespace:Telerik.WinForms.Documents.Layout
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public struct RadMatrix
Constructors
RadMatrix(PointF)
Initializes a new RadMatrix, applying the specified X and Y values as DX and DY members of the matrix.
RadMatrix(RadMatrix)
Copy constructor.
RadMatrix(float)
Initializes a new RadMatrix, rotated by the specified angle (in degrees) at origin (0, 0).
RadMatrix(float, PointF)
Initializes a new RadMatrix, rotated by the specified angle (in degrees) at the provided origin.
RadMatrix(float, float)
Initializes a new RadMatrix, scaling it by the provided parameters, at the origin (0, 0).
RadMatrix(float, float, PointF)
Initializes a new RadMatrix, scaling it by the provided parameters, at the specified origin.
Fields
Properties
Determinant
Gets the determinant - [(M11 * M22) - (M12 * M21)] - of this Matrix.
Elements
Gets all the six fields of the matrix as an array.
IsEmpty
Determines whether the current matrix is empty.
IsIdentity
Determines whether this matrix equals to the Identity one.
IsInvertible
Determines whether this matrix may be inverted. That is to have non-zero determinant.
Rotation
Gets the rotation (in degrees) applied to this matrix.
ScaleX
Gets the scale by the X axis, provided by this matrix.
Methods
Multiply(RadMatrix, MatrixOrder)
Declaration
public void Multiply(RadMatrix matrix, MatrixOrder order)
Parameters
matrix
order
Reset()
Declaration
public void Reset()
Rotate(float, MatrixOrder)
Declaration
public void Rotate(float angle, MatrixOrder order)
Parameters
angle
order
RotateAt(float, PointF, MatrixOrder)
Declaration
public void RotateAt(float angle, PointF origin, MatrixOrder order)
Parameters
angle
origin
order
Scale(float, float, MatrixOrder)
Declaration
public void Scale(float scaleX, float scaleY, MatrixOrder order)
Parameters
scaleX
scaleY
order
TransformPoints(PointF[])
Declaration
public void TransformPoints(PointF[] points)
Parameters
points
PointF[]
TransformRectangle(RectangleF)
Declaration
public RectangleF TransformRectangle(RectangleF bounds)
Parameters
bounds
Returns
Translate(float, float, MatrixOrder)
Declaration
public void Translate(float dx, float dy, MatrixOrder order)
Parameters
dx
dy
order