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

NameTypeAccessDescription
afloatRead/WriteGets or sets the a.
bfloatRead/WriteGets or sets the b.
cfloatRead/WriteGets or sets the c.
dfloatRead/WriteGets or sets the d.
efloatRead/WriteGets or sets the e.
ffloatRead/WriteGets or sets the f.

Methods

SignatureDescription
translate(x: float, y: float)Calls translate(x, y) on this Matrix instance.
multiply(other: Matrix)MatrixCalls multiply(other) on this Matrix instance.

See Also