StructRadMatrix
Represents a light-weight 3*3 Matrix to be used for GDI+ transformations.
Definition
Namespace:Telerik.WinControls.Layouts
Assembly:Telerik.WinControls.dll
Syntax:
public struct RadMatrix
Constructors
RadMatrix(Matrix)
Initializes a new RadMatrix, using the elements of the specified GDI+ Matrix instance.
Declaration
public RadMatrix(Matrix gdiMatrix)
Parameters
gdiMatrix
The GDI+ Matrix to copy elements from.
RadMatrix(PointF)
Initializes a new RadMatrix, applying the specified X and Y values as DX and DY members of the matrix.
Declaration
public RadMatrix(PointF offset)
Parameters
offset
The point containing the X and Y offset values.
RadMatrix(RadMatrix)
Copy constructor.
Declaration
public RadMatrix(RadMatrix source)
Parameters
source
The source RadMatrix to copy from.
RadMatrix(float)
Initializes a new RadMatrix, rotated by the specified angle (in degrees) at origin (0, 0).
Declaration
public RadMatrix(float angle)
Parameters
angle
The rotation angle in degrees.
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.
RadMatrix(float, float, float, float, float, float)
Initializes a new RadMatrix, using the specified parameters.
Declaration
public RadMatrix(float m11, float m12, float m21, float m22, float dx, float dy)
Parameters
m11
The matrix element at row 1, column 1.
m12
The matrix element at row 1, column 2.
m21
The matrix element at row 2, column 1.
m22
The matrix element at row 2, column 2.
dx
The X-axis translation component.
dy
The Y-axis translation component.
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
Invert()
Declaration
public void Invert()
Multiply(RadMatrix, MatrixOrder)
Declaration
public void Multiply(RadMatrix m, MatrixOrder order)
Parameters
m
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