Matrix
Matrix
Przegląd
Matrix jest klasą w Aspose.PDF FOSS dla Python.
Matrix obsługuje transformacje 2‑D przy użyciu metod translate(x, y) i multiply(other), udostępniając komponenty a‑f macierzy afinicznej.
Ta klasa udostępnia 2 metody do pracy z obiektami Matrix w programach Python. Dostępne metody to: multiply, translate. Wszystkie publiczne elementy są dostępne dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.PDF FOSS dla Python. Właściwości: a, b, c, d, e, f.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
a | float | Odczyt/zapis | Pobiera lub ustawia a. |
b | float | Odczyt/zapis | Pobiera lub ustawia b. |
c | float | Odczyt/zapis | Pobiera lub ustawia c. |
d | float | Odczyt/zapis | Pobiera lub ustawia d. |
e | float | Odczyt/zapis | Pobiera lub ustawia e. |
f | float | Odczyt/zapis | Pobiera lub ustawia f. |
Metody
| Sygnatura | Opis |
|---|---|
translate(x: float, y: float) | Wywołuje translate(x, y) na tej instancji Matrix. |
multiply(other: Matrix) → Matrix | Wywołuje multiply(other) na tej instancji Matrix. |