Click or drag to resize

ImmutableMatrix Structure

This class represents an 2D geometry transform matrix. This is quite similar to System.Drawing.Drawing2D.Matrix. However, this struct is both faster and immutable.

Namespace:  Atalasoft.FormsProcessing.Geometry
Assembly:  Atalasoft.dotImage.FormsProcessing (in Atalasoft.dotImage.FormsProcessing.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public struct ImmutableMatrix

The ImmutableMatrix type exposes the following members.

Constructors
  NameDescription
Public methodImmutableMatrix(Single)
Creates a new ImmutableMatrix instance with the values provided in the given array. [ xScale, xShear, xT ] [ yShear, yScale, yT ] [ 0, 0, 1 ]
Public methodImmutableMatrix(Single, Single, Single, Single, Single, Single)
Creates a new ImmutableMatrix instance with the following values. [ xScale, xShear, xT ] [ yShear, yScale, yT ] [ 0, 0, 1 ]
Top
Properties
  NameDescription
Public propertyStatic memberIdentity
Returns an new instance of an identity Matrix.
Public propertyType
A text description of the type of this Matrix.
Public propertyXScale
The upper left value of the matrix (0,0). Indicates scaling on the X-Axis.
Public propertyXShear
The upper-middle value of the matrix (1,0). Indicates shearing parallel to the X-Axis.
Public propertyXTranslation
The upper-right value of the matrix (2,0). Indicates translation along the X-Axis.
Public propertyYScale
The middle value of the matrix (1,1). Indicates scaling on the Y-Axis.
Public propertyYShear
The left-middle value of the matrix (0,1). Indicates shearing parallel to the Y-Axis.
Public propertyYTranslation
The middle-right value of the matrix (2,1). Indicates translation along the Y-Axis.
Top
Methods
  NameDescription
Public methodApproximateTransform(RectangleF)
Public methodApproximateTransform(RectangleF)
Creates a new set of RectangleFs based on the transformation of the given RectangleFs by this Matrix. This is done by performing transformation on the centerpoint of the RectangleF and scaling its size.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetDrawing2DMatrix
Creates a System.Drawing.Drawing2D.Matrix from this Matrix.
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetPostTransformBoundedRectangle
Creates a new RectangleF based on the transformation of the given set of points by this Matrix. After transformation, the resulting points are then fitted with a bounding RectangleF.
Public methodGetRectangleBoundedPostTransformSize(PointF)
Creates a new SizeF based on the transformation of the given set of points by this Matrix. After transformation, the resulting points are then fitted with a bounding SizeF.
Public methodGetRectangleBoundedPostTransformSize(SizeF)
Creates a new SizeF based on the transformation of the given SizeF by this Matrix. The SizeF is first converted to points. After transformation, the resulting points are then fitted with a bounding SizeF.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMultiply
Used to find the product of two ImmutableMatricies.
Public methodStatic memberRotationMatrix(Single)
Returns a new instance of a rotation matrix (around 0,0)
Public methodStatic memberRotationMatrix(PointF, Single)
Returns a new instance of a rotation matrix (around x,y)
Public methodStatic memberRotationMatrix(Single, Single, Single)
Returns a new instance of a rotation matrix (around x,y)
Public methodStatic memberScaleMatrix
Returns a new instance of a scale matrix
Public methodStatic memberShearMatrix
Returns a new instance of a shear matrix
Public methodToString
Returns a text description of what this ImmutableMatrix represents.
(Overrides ValueTypeToString.)
Public methodTransform(PointF)
Creates a new PointF based on the transformation of the given PointF by this Matrix.
Public methodTransform(PointF)
Creates a new set of PointFs based on the transformation of the given PointFs by this Matrix.
Public methodStatic memberTranslationMatrix
Returns a new instance of a translation matrix
Top
See Also