|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagecom.itextpdf.kernel.geomas colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
The AffineTransform class represents an affine transformation, which is a combination of linear transformations such as translation, scaling, rotation, and shearing which allows preservation of the straightness of lines.Class AffineTransform, constructor AffineTransform(double, double, double, double, double, double)Note: this class is a special case of a 3 by 3 Matrix.
Create an AffineTransform instance with the values provided. The default type is for the transformation is {@code TYPE_UNKNOWN} Detailed explanation of parameters can be found in Matrix documentation. @param m00 The value of the first row and first column of the matrix. @param m10 The value of the second row and first column of the matrix. @param m01 The value of the first row and second column of the matrix. @param m11 The value of the second row and second column of the matrix. @param m02 The value of the first row and third column of the matrix. @param m12 The value of the second row and third column of the matrix.Class AffineTransform, constructor AffineTransform(double[])
Create an AffineTransform instance with the values provided. The default type is for the transformation is {@code TYPE_UNKNOWN} Detailed explanation of parameters can be found in Matrix documentation. @param matrix The array of values to be used for the transformation matrix.Class AffineTransform, constructor AffineTransform(float[])
Create an AffineTransform instance with the values provided. The default type is for the transformation is {@code TYPE_UNKNOWN} Detailed explanation of parameters can be found in Matrix documentation. @param matrix The array of values to be used for the transformation matrix.
Keeps all the values of a 3 by 3 matrix and allows youClass Matrix, constructor Matrix()toto do some math with matrices.Transformation matrix in PDF is a special case of a 3 by 3 matrix
{@code [a b 0]}
{@code [c d 0]}
{@code [e f 1]}In its most general form, this matrix is specified by six numbers, usually in the form of an array containing six elements {@code [a b c d e f]}. It can represent any linear transformation from one coordinate system to another. Here the most common transformations:
- Translations shall be specified as {@code [1 0 0 1 Tx Ty]}, where {@code Tx} and {@code Ty} shall be the distances to translate the origin of the coordinate system in the horizontal and vertical dimensions, respectively.
- Scaling shall be obtained by {@code [Sx 0 0 Sy 0 0]}. This scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as {@code Sx} and {@code Sy} units, respectively, in the previous coordinate system.
- Rotations shall be produced by {@code [Rc Rs -Rs Rc 0 0]}, where {@code Rc = cos(q)} and {@code Rs = sin(q)} which has the effect of rotating the coordinate system axes by an angle {@code q} counterclockwise.
- Skew shall be specified by {@code [1 Wx Wy 1 0 0]}, where {@code Wx = tan(a)} and {@code Wy = tan(b)} which skews the x-axis by an angle {@code a} and the y-axis by an angle {@code b}.
For more information see PDF Specification ISO 32000-1 section 8.3.
Class Matrix, Matrix multiply(Matrix)constructsConstructs a new Matrix with identity.
multiplies this matrix by 'b' and returns the result. SeeClass Matrix, int I11http://en.wikipedia.org/wiki/Matrix_multiplicationmultiplication @param by The matrix to multiply by @return the resulting matrix
Class Matrix, int I12theThe row=1, col=1 position ('a') in the matrix.
Class Matrix, int I13theThe row=1, col=2 position ('b') in the matrix.
Class Matrix, int I21theThe row=1, col=3 position (always 0 for2-D2D) in the matrix.
Class Matrix, int I22theThe row=2, col=1 position ('c') in the matrix.
Class Matrix, int I23theThe row=2, col=2 position ('d') in the matrix.
Class Matrix, int I31theThe row=2, col=3 position (always 0 for2-D2D) in the matrix.
Class Matrix, int I32theThe row=3, col=1 ('e', or X translation) position in the matrix.
Class Matrix, int I33theThe row=3, col=2 ('f', or Y translation) position in the matrix.
theThe row=3, col=3 position (always 1 for2-D2D) in the matrix.
Gets theTransforms a rectangle defined in the space of unrotated origin (bottom-left) into coordinates as itlookswould appear onthea passed as parameter rotatedpagepage.and
returns the rectangle inThis method is usefulcoordinateswhen adding annotations, form fields, orrelevantother elements tothe truea PDF pageoriginthat has a rotation.This rectangle can be usedThe iText coordinate system alwaystouses theaddbottom-leftannotationscorner as origin,fieldsregardless of page rotation. This method compensates for that rotation,and other objectsreturning a rectangletopositioned correctly in therotatedtrue page coordinate space. @param rect the rectangleas itdefined inlookspage-spaceoncoordinates relative to therotated pageunrotated origin. @param page thepagePdfPageonto whichonethe rectangle will be added.wantThe rotation of this page is used toprocesstransform therectanglecoordinates.@returnthe newlyacreatednewrectangleRectangle withtranslatedcorrected coordinates suitable for placement in the rotated coordinate space of the page.