Click or drag to resize

IMatrix Interface

Defines a matrix used for transforms in Graphics and Brushes

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public interface IMatrix : IControlObjectSource, 
	IDisposable

The IMatrix type exposes the following members.

Properties
  NameDescription
Public propertyElements
Gets the elements of this matrix
Public propertyX0
Gets or sets the value at position [3,1] in the matrix
Public propertyXx
Gets or sets the value at position [1,1] in the matrix
Public propertyXy
Gets or sets the value at position [2,1] in the matrix
Public propertyY0
Gets or sets the value at position [3,2] in the matrix
Public propertyYx
Gets or sets the value at position [1,2] in the matrix
Public propertyYy
Gets or sets the value at position [2,2] in the matrix
Top
Methods
  NameDescription
Public methodAppend
Append the specified matrix to this matrix
Public methodClone
Clone this instance
Public methodInvert
Inverts this matrix
Public methodPrepend
Prepend the specified matrix to this matrix
Public methodRotate
Prepend a rotation to the matrix around the origin (0,0)
Public methodRotateAt
Prepend a rotation around the specified point to the matrix
Public methodScale
Prepend a scale to the matrix from the origin (0, 0)
Public methodScaleAt
Prepend a scale to the matrix from the specified point
Public methodSkew
Prepend a skew to the matrix
Public methodTransformPoint(Point)
Transforms the specified point using this matrix transform
Public methodTransformPoint(PointF)
Transforms the specified point using this matrix transform
Public methodTranslate
Prepend a translation to the matrix
Top
Extension Methods
  NameDescription
Public Extension MethodAppend
Append the specified matrices to the matrix
(Defined by Matrix.)
Public Extension MethodGetScale
Returns the scale coordinates Xx and Yy of the matrix as a PointF.
(Defined by Matrix.)
Public Extension MethodInverse
Creates an inverted copy of the specified matrix.
(Defined by Matrix.)
Public Extension MethodPrepend
Prepends the specified matrices to the matrix
(Defined by Matrix.)
Public Extension MethodRotateAt
Prepend a rotation around the specified point to the matrix
(Defined by Matrix.)
Public Extension MethodScale(Single)Overloaded.
Prepend a scale to the matrix from the origin (0, 0)
(Defined by Matrix.)
Public Extension MethodScale(SizeF)Overloaded.
Prepend a scale to the matrix from the origin (0, 0)
(Defined by Matrix.)
Public Extension MethodScaleAt(Single, PointF)Overloaded.
Prepend a scale to the matrix from the specified point
(Defined by Matrix.)
Public Extension MethodScaleAt(SizeF, PointF)Overloaded.
Prepend a scale to the matrix from the specified point
(Defined by Matrix.)
Public Extension MethodScaleAt(Single, Single, Single)Overloaded.
Prepend a scale to the matrix from the specified point
(Defined by Matrix.)
Public Extension MethodTransformRectangle
Transforms the rectangle with the current matrix.
(Defined by Matrix.)
Public Extension MethodTransformSize
Transforms the size with the current matrix.
(Defined by Matrix.)
Public Extension MethodTranslate(PointF)Overloaded.
Prepend a translation to the matrix
(Defined by Matrix.)
Public Extension MethodTranslate(SizeF)Overloaded.
Prepend a translation to the matrix
(Defined by Matrix.)
Top
Remarks
A matrix is defined by six elements that are used to transform a coordinate system. The elements of the matrix are defined as:

| xx yx 0 | | xy yy 0 | | x0 y0 1 |

See Also