Example usage for Java org.apache.pdfbox.util Matrix fields, constructors, methods, implement or subclass
The text is from its open source code.
Matrix() Constructor. | |
Matrix(float a, float b, float c, float d, float e, float f) Creates a transformation matrix with the given 6 elements. | |
Matrix(COSArray array) Creates a matrix from a 6-element (a b c d e f) COS array. | |
Matrix(AffineTransform at) Creates a matrix with the same elements as the given AffineTransform. |
Matrix | clone() Clones this object. |
void | concatenate(Matrix matrix) Concatenates (premultiplies) the given matrix to this matrix. |
Matrix | concatenate(Matrix a, Matrix b) Produces a copy of the first matrix, with the second matrix concatenated. |
AffineTransform | createAffineTransform() Create an affine transform from this matrix's values. |
Matrix | getRotateInstance(double theta, float tx, float ty) Convenience method to create a rotated instance. |
Matrix | getScaleInstance(float sx, float sy) Convenience method to create a scaled instance. |
float | getScaleX() Returns the x-scaling element of this matrix. |
float | getScaleY() Returns the y-scaling element of this matrix. |
float | getScalingFactorX() Returns the x-scaling factor of this matrix. |
float | getScalingFactorY() Returns the y-scaling factor of this matrix. |
Matrix | getTranslateInstance(float tx, float ty) Convenience method to create a translating instance. |
float | getTranslateX() Returns the x-translation element of this matrix. |
float | getTranslateY() Returns the y-translation element of this matrix. |
float | getValue(int row, int column) This will get a matrix value at some point. |
Matrix | multiply(Matrix b) This will take the current matrix and multiply it with a matrix that is passed in. |
void | rotate(double theta) Rotares this matrix by the given factors. |
void | scale(float sx, float sy) Scales this matrix by the given factors. |
void | setValue(int row, int column, float value) This will set a value at a position. |
void | translate(float tx, float ty) Translates this matrix by the given amount. |