Matrix
Overview
Matrix is a class in Aspose.PDF FOSS for Python.
Matrix supports 2‑D transformations with translate(x, y) and multiply(other) methods, exposing the a‑f components of the affine matrix.
This class provides 2 methods for working with Matrix objects in Python programs.
Available methods include: multiply, translate.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: a, b, c, d, e, f.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
a | float | Read/Write | Gets or sets the a. |
b | float | Read/Write | Gets or sets the b. |
c | float | Read/Write | Gets or sets the c. |
d | float | Read/Write | Gets or sets the d. |
e | float | Read/Write | Gets or sets the e. |
f | float | Read/Write | Gets or sets the f. |
Methods
| Signature | Description |
|---|---|
translate(x: float, y: float) | Calls translate(x, y) on this Matrix instance. |
multiply(other: Matrix) → Matrix | Calls multiply(other) on this Matrix instance. |