Atalasoft DotImage 11.0

## 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.

Syntax

The ImmutableMatrix type exposes the following members.

Constructors

Name | Description | |
---|---|---|

ImmutableMatrix(Single) |
Creates a new ImmutableMatrix instance with the values provided in the given array.
[ xScale, xShear, xT ]
[ yShear, yScale, yT ]
[ 0, 0, 1 ]
| |

ImmutableMatrix(Single, Single, Single, Single, Single, Single) | Creates a new ImmutableMatrix instance with the following values. [ xScale, xShear, xT ] [ yShear, yScale,
yT ] [ 0, 0, 1 ] |

Properties

Name | Description | |
---|---|---|

Identity | Returns an new instance of an identity Matrix. | |

Type | A text description of the type of this Matrix. | |

XScale | The upper left value of the matrix (0,0). Indicates scaling on the X-Axis. | |

XShear | The upper-middle value of the matrix (1,0). Indicates shearing parallel to the X-Axis. | |

XTranslation | The upper-right value of the matrix (2,0). Indicates translation along the X-Axis. | |

YScale | The middle value of the matrix (1,1). Indicates scaling on the Y-Axis. | |

YShear | The left-middle value of the matrix (0,1). Indicates shearing parallel to the Y-Axis. | |

YTranslation | The middle-right value of the matrix (2,1). Indicates translation along the Y-Axis. |

Methods

Name | Description | |
---|---|---|

ApproximateTransform(RectangleF) | ||

ApproximateTransform(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. | |

Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |

GetDrawing2DMatrix | Creates a System.Drawing.Drawing2D.Matrix from this Matrix. | |

GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |

GetPostTransformBoundedRectangle |
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.
| |

GetRectangleBoundedPostTransformSize(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. | |

GetRectangleBoundedPostTransformSize(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. | |

GetType | Gets the Type of the current instance. (Inherited from Object.) | |

Multiply | Used to find the product of two ImmutableMatricies. | |

RotationMatrix(Single) | Returns a new instance of a rotation matrix (around 0,0) | |

RotationMatrix(PointF, Single) |
Returns a new instance of a rotation matrix (around x,y)
| |

RotationMatrix(Single, Single, Single) | Returns a new instance of a rotation matrix (around x,y) | |

ScaleMatrix | Returns a new instance of a scale matrix | |

ShearMatrix | Returns a new instance of a shear matrix | |

ToString | Returns a text description of what this ImmutableMatrix represents. (Overrides ValueTypeToString.) | |

Transform(PointF) | Creates a new PointF based on the transformation of the given PointF by this Matrix. | |

Transform(PointF) | Creates a new set of PointFs based on the transformation of the given PointFs by this Matrix. | |

TranslationMatrix | Returns a new instance of a translation matrix |

See Also