## Matrix class

Class represents transformation matrix.

```csharp
public sealed class Matrix
```

## Constructors

| Name | Description |
| --- | --- |
| [Matrix](matrix/#constructor)() | Constructor creates stanrard 1 to 1 matrix: [ A B C D E F ] = [ 1, 0, 0, 1, 0, 0] |
| [Matrix](matrix/#constructor_3)(double[]) | Constructor accepts a matrix with following array representation: [ A B C D E F ] |
| [Matrix](matrix/#constructor_4)(float[]) | Constructor accepts a matrix with following array representation: [ A B C D E F ] |
| [Matrix](matrix/#constructor_1)(Matrix) | Constructor accepts a matrix to create a copy |
| [Matrix](matrix/#constructor_2)(double, double, double, double, double, double) | Initializes transformation matrix with specified coefficients. |

## Properties

| Name | Description |
| --- | --- |
| [A](../../aspose.pdf/matrix/a/) { get; set; } | A member of the transformation matrix. |
| [B](../../aspose.pdf/matrix/b/) { get; set; } | B member of the transformation matrix. |
| [C](../../aspose.pdf/matrix/c/) { get; set; } | C member of the transformation matrix. |
| [D](../../aspose.pdf/matrix/d/) { get; set; } | D member of the transformation matrix. |
| [Data](../../aspose.pdf/matrix/data/) { get; } | Gets data of Matrix as array. |
| [E](../../aspose.pdf/matrix/e/) { get; set; } | E member of the transformation matrix. |
| [Elements](../../aspose.pdf/matrix/elements/) { get; } | Elements of the matrix. |
| [F](../../aspose.pdf/matrix/f/) { get; set; } | F member of the transformation matrix. |

## Methods

| Name | Description |
| --- | --- |
| static [Rotation](../../aspose.pdf/matrix/rotation/#rotation_1)(double) | Creates matrix for given rotation angle. |
| static [Rotation](../../aspose.pdf/matrix/rotation/#rotation)(Rotation) | Creates matrix for given rotation. |
| static [Scale](../../aspose.pdf/matrix/scale/)(double, double, Matrix) | Applies scaling to the given matrix. |
| static [Skew](../../aspose.pdf/matrix/skew/)(double, double) | Creates matrix for given rotation angle. |
| static [Translate](../../aspose.pdf/matrix/translate/)(double, double, Matrix) | Translates a matrix by the specified amount in the x and y direction. |
| [Add](../../aspose.pdf/matrix/add/)(Matrix) | Adds matrix to other matrix. |
| override [Equals](../../aspose.pdf/matrix/equals/)(object) | Compares matrix agains other object. |
| [GetFlipMatrix](../../aspose.pdf/matrix/getflipmatrix/)() | Gets the flipping matrix. |
| override [GetHashCode](../../aspose.pdf/matrix/gethashcode/)() | Hash-code for object. |
| [Multiply](../../aspose.pdf/matrix/multiply/)(Matrix) | Multiplies the matrix by other matrix. |
| [Reverse](../../aspose.pdf/matrix/reverse/)() | Calculates reverse matrix. |
| [Scale](../../aspose.pdf/matrix/scale/)(double, double, out double, out double) | Scales x and y with the matrix using the following formula: x1 = A*x + C*y; y1 = B*x + D*y; |
| override [ToString](../../aspose.pdf/matrix/tostring/)() | Returns text reporesentation of the matrix. |
| [Transform](../../aspose.pdf/matrix/transform/#transform)(Point) | Transforms point using this matrix. |
| [Transform](../../aspose.pdf/matrix/transform/#transform_1)(Rectangle) | Transformes rectangle. If angle is not 90 * N degrees then bounding rectangle is returned. |
| [Transform](../../aspose.pdf/matrix/transform/#transform_2)(double, double, out double, out double) | Transforms coordinates using this matrix. |
| [UnScale](../../aspose.pdf/matrix/unscale/)(double, double, out double, out double) | Scales back x1 and y1 and returns x and y before the matrix transformation using the following formula: x = (D * x1 - C * y1) / (A * D - C * B); y = (A* y1 - B* x1) / (A* D - C* B); |
| [UnTransform](../../aspose.pdf/matrix/untransform/)(double, double, out double, out double) | Transforms back x1 and y1 and returns x and y before the matrix transformation using the following formula: x = (D * x1 - C * y1 + C * F) / (A * D - C * B) y = (A * y1 - B * x1 + B * E) / (A * D - C * B). |
| static [GetAngle](../../aspose.pdf/matrix/getangle/)(Rotation) | Transaltes rotation into angle (degrees) |

### See Also

* namespace [Aspose.Pdf](../../aspose.pdf/)
* assembly [Aspose.PDF](../../)


