Matrix
Vue de l’ensemble
‘Matrix’ est une classe dans Aspose.PDF FOSS pour Java.
Il représente une matrice de transformation 3x3 affine utilisée dans l’état graphique PDF.
Cette classe fournit 20 méthodes pour travailler avec des objets Matrix dans les programmes Java. Les méthodologies disponibles comprennent: ‘Matrix’, ’equals’, fromPdfArray', ‘getA’, ‘ getB, ‘getC , ‘geT’ , 'getF et 6 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspouse.PDF FOSS pour le package Java . Propriétés : ‘IDENTITY’, ’a; b ; c,, de` etc.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
values | double[] | Read | Returns a copy of the six matrix values. |
a | double | Read | Returns the a (scale X / rotate) component. |
b | double | Read | Returns the b (rotate / skew) component. |
c | double | Read | Returns the c (rotate / skew) component. |
d | double | Read | Returns the d (scale Y / rotate) component. |
e | double | Read | Returns the e (translate X) component. |
f | double | Read | Returns the f (translate Y) component. |
IDENTITY | Matrix | Read | The identity matrix (no transformation). |
méthodes
| Signature | Description |
|---|---|
Matrix(a: double, b: double, c: double, d: double, e: double, f: double) | Creates a matrix with the specified six values. |
Matrix(elements: double[]) | Creates a matrix from a six-element array. |
Matrix() | Creates the identity matrix. |
rotation(angleRadians: double) → Matrix | Creates a rotation matrix for the given angle in radians. |
getValues() → double[] | Returns a copy of the six matrix values. |
getA() → double | Returns the a (scale X / rotate) component. |
getB() → double | Returns the b (rotate / skew) component. |
getC() → double | Returns the c (rotate / skew) component. |
getD() → double | Returns the d (scale Y / rotate) component. |
getE() → double | Returns the e (translate X) component. |
getF() → double | Returns the f (translate Y) component. |
multiply(other: Matrix) → Matrix | Multiplies this matrix by another, returning a new matrix. |
transformPoint(x: double, y: double) → double[] | Transforms a point (x, y) by this matrix. |
reverse() → Matrix | Returns the inverse matrix. |
transform(rectangle: Rectangle) → Rectangle | Transforms a rectangle and returns the axis-aligned bounding box |
| of the transformed corners. | |
fromPdfArray(array: PdfArray) → Matrix | Creates a Matrix from a PDF array of six numbers. |
toPdfArray() → PdfArray | Converts this matrix to a PDF array of six numbers. |
equals(o: Object) → boolean | |
hashCode() → int | |
toString() → String |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise