|
iText 9.6.0 API
|
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. More...
Public Member Functions |
|
| AffineTransform () | |
| Create an empty AffineTransform instance. More... |
|
| AffineTransform (iText.Kernel.Geom.AffineTransform t) | |
| Will create a new AffineTransform instance with the values provided from the original AffineTransform instance. More... |
|
| AffineTransform (double m00, double m10, double m01, double m11, double m02, double m12) | |
| Create an AffineTransform instance with the values provided. More... |
|
| AffineTransform (float[] matrix) | |
| Create an AffineTransform instance with the values provided. More... |
|
| AffineTransform (double[] matrix) | |
| Create an AffineTransform instance with the values provided. More... |
|
| virtual int | GetTransformType () |
| Method returns type of affine transformation. More... |
|
| virtual double | GetScaleX () |
| Gets the scale factor of the x-axis. More... |
|
| virtual double | GetScaleY () |
| Gets the scale factor of the y-axis. More... |
|
| virtual double | GetShearX () |
| Gets the shear factor of the x-axis. More... |
|
| virtual double | GetShearY () |
| Gets the shear factor of the y-axis. More... |
|
| virtual double | GetTranslateX () |
| Gets translation factor of the x-axis. More... |
|
| virtual double | GetTranslateY () |
| Gets translation factor of the y-axis. More... |
|
| virtual bool | IsIdentity () |
| Gets whether this AffineTransform is an identity transformation. More... |
|
| virtual float[] | GetMatrix () |
| Gets an array filled with the values of this AffineTransform instance. More... |
|
| virtual void | GetMatrix (float[] matrix) |
| Fills the matrix parameter with the values of this AffineTransform instance. More... |
|
| virtual void | GetMatrix (double[] matrix) |
| Fills the matrix parameter with the values of this AffineTransform instance. More... |
|
| virtual double | GetDeterminant () |
| Gets the determinant of the matrix representation of this AffineTransform. More... |
|
| virtual void | SetTransform (float m00, float m10, float m01, float m11, float m02, float m12) |
| Sets the values of this AffineTransform instance to the values provided. More... |
|
| virtual void | SetTransform (double m00, double m10, double m01, double m11, double m02, double m12) |
| Sets the values of this AffineTransform instance to the values provided. More... |
|
| virtual void | SetTransform (iText.Kernel.Geom.AffineTransform t) |
| Sets the values of this AffineTransform instance to the values provided. More... |
|
| virtual void | SetToIdentity () |
| Sets this AffineTransform to the identity transformation. More... |
|
| virtual void | SetToTranslation (double mx, double my) |
| Sets this AffineTransform to represent a translation transformation. More... |
|
| virtual void | SetToScale (double scx, double scy) |
| Sets this AffineTransform to represent a scale transformation. More... |
|
| virtual void | SetToShear (double shx, double shy) |
| Sets this AffineTransform to represent a shear transformation. More... |
|
| virtual void | SetToRotation (double angle) |
| Set this affine transformation to represent a rotation over the passed angle More... |
|
| virtual void | SetToRotation (double angle, double px, double py) |
| Set this affine transformation to represent a rotation over the passed angle, using the passed point as the center of rotation More... |
|
| virtual void | Translate (double mx, double my) |
| virtual void | Scale (double scx, double scy) |
| virtual void | Shear (double shx, double shy) |
| virtual void | Rotate (double angle) |
| Add a counter-clockwise rotation to this transformation More... |
|
| virtual void | Rotate (double angle, double px, double py) |
| Add a counter-clockwise rotation to this transformation, using the passed point as the center of rotation More... |
|
| virtual void | Concatenate (iText.Kernel.Geom.AffineTransform t) |
| Multiply matrix of two AffineTransform objects More... |
|
| virtual void | PreConcatenate (iText.Kernel.Geom.AffineTransform t) |
| Multiply matrix of two AffineTransform objects More... |
|
| virtual iText.Kernel.Geom.AffineTransform | CreateInverse () |
| Creates a new AffineTransform object that is invert of this AffineTransform object. More... |
|
| virtual Point | Transform (Point src, Point dst) |
| Transform the point according to the values of this AffineTransform object. More... |
|
| virtual void | Transform (Point[] src, int srcOff, Point[] dst, int dstOff, int length) |
| Transform the array of points according to the values of this AffineTransform object. More... |
|
| virtual void | Transform (double[] src, int srcOff, double[] dst, int dstOff, int length) |
| Transform the array of points according to the values of this AffineTransform object. More... |
|
| virtual void | Transform (float[] src, int srcOff, float[] dst, int dstOff, int length) |
| Transform the array of points according to the values of this AffineTransform object. More... |
|
| virtual void | Transform (float[] src, int srcOff, double[] dst, int dstOff, int length) |
| Transform the array of points according to the values of this AffineTransform object. More... |
|
| virtual void | Transform (double[] src, int srcOff, float[] dst, int dstOff, int length) |
| Transform the array of points according to the values of this AffineTransform object. More... |
|
| virtual Point | DeltaTransform (Point src, Point dst) |
| Performs the transformation on the source point and stores the result in the destination point. More... |
|
| virtual void | DeltaTransform (double[] src, int srcOff, double[] dst, int dstOff, int length) |
| Performs the delta transformation on the source array of points and stores the result in the destination array of points. More... |
|
| virtual Point | InverseTransform (Point src, Point dst) |
| Performs the inverse transformation on the source point and stores the result in the destination point. More... |
|
| virtual void | InverseTransform (double[] src, int srcOff, double[] dst, int dstOff, int length) |
| Performs the inverse transformation on the source array of points and stores the result in the destination array of points. More... |
|
| virtual void | InverseTransform (float[] src, int srcOff, float[] dst, int dstOff, int length) |
| Performs the inverse transformation on the source array of points and stores the result in the destination array of points. More... |
|
| virtual iText.Kernel.Geom.AffineTransform | Clone () |
| Creates a "deep copy" of this AffineTransform, meaning the object returned by this method will be independent of the object being cloned. More... |
|
| override bool | Equals (Object o) |
| Compares this AffineTransform with the specified Object. More... |
|
| override int | GetHashCode () |
| Returns a hash code value for the object. More... |
|
Static Public Member Functions |
|
| static iText.Kernel.Geom.AffineTransform | GetTranslateInstance (double mx, double my) |
| Get a new AffineTransform instance representing a translation over the passed values More... |
|
| static iText.Kernel.Geom.AffineTransform | GetScaleInstance (double scx, double scY) |
| Get a new AffineTransform instance representing a scale over the passed values More... |
|
| static iText.Kernel.Geom.AffineTransform | GetShearInstance (double shx, double shy) |
| Get a new AffineTransform instance representing a shear over the passed values More... |
|
| static iText.Kernel.Geom.AffineTransform | GetRotateInstance (double angle) |
| Get an affine transformation representing a counter-clockwise rotation over the passed angle More... |
|
| static iText.Kernel.Geom.AffineTransform | GetRotateInstance (double angle, double x, double y) |
| Get an affine transformation representing a counter-clockwise rotation over the passed angle, using the passed point as the center of rotation More... |
|
Static Public Attributes |
|
| const int | TYPE_IDENTITY = 0 |
| The type of affine transformation. More... |
|
| const int | TYPE_TRANSLATION = 1 |
| The type of affine transformation. More... |
|
| const int | TYPE_UNIFORM_SCALE = 2 |
| The type of affine transformation. More... |
|
| const int | TYPE_GENERAL_SCALE = 4 |
| The type of affine transformation. More... |
|
| const int | TYPE_QUADRANT_ROTATION = 8 |
| The type of affine transformation. More... |
|
| const int | TYPE_GENERAL_ROTATION = 16 |
| The type of affine transformation. More... |
|
| const int | TYPE_GENERAL_TRANSFORM = 32 |
| The type of affine transformation. More... |
|
| const int | TYPE_FLIP = 64 |
| The type of affine transformation. More... |
|
| const int | TYPE_MASK_SCALE = TYPE_UNIFORM_SCALE | TYPE_GENERAL_SCALE |
| The type of affine transformation. More... |
|
| const int | TYPE_MASK_ROTATION = TYPE_QUADRANT_ROTATION | TYPE_GENERAL_ROTATION |
| The type of affine transformation. More... |
|
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.
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.
Note: this class is a special case of a 3 by 3 Matrix.
|
inline |
Create an empty AffineTransform instance.
Create an empty AffineTransform instance. The default type is for the transformation is TYPE_IDENTITY
|
inline |
Will create a new AffineTransform instance with the values provided from the original AffineTransform instance.
| t | The AffineTransform class to be used. |
|
inline |
Create an AffineTransform instance with the values provided.
Create an AffineTransform instance with the values provided. The default type is for the transformation is TYPE_UNKNOWN Detailed explanation of parameters can be found in Matrix documentation.
| m00 | The value of the first row and first column of the matrix. |
| m10 | The value of the second row and first column of the matrix. |
| m01 | The value of the first row and second column of the matrix. |
| m11 | The value of the second row and second column of the matrix. |
| m02 | The value of the first row and third column of the matrix. |
| m12 | The value of the second row and third column of the matrix. |
|
inline |
Create an AffineTransform instance with the values provided.
Create an AffineTransform instance with the values provided. The default type is for the transformation is TYPE_UNKNOWN Detailed explanation of parameters can be found in Matrix documentation.
| matrix | The array of values to be used for the transformation matrix. |
|
inline |
Create an AffineTransform instance with the values provided.
Create an AffineTransform instance with the values provided. The default type is for the transformation is TYPE_UNKNOWN Detailed explanation of parameters can be found in Matrix documentation.
| matrix | The array of values to be used for the transformation matrix. |
|
inlinevirtual |
Creates a "deep copy" of this AffineTransform, meaning the object returned by this method will be independent of the object being cloned.
|
inlinevirtual |
Multiply matrix of two AffineTransform objects
| t | - the AffineTransform object is a multiplier. |
|
inlinevirtual |
Creates a new AffineTransform object that is invert of this AffineTransform object.
|
inlinevirtual |
Performs the delta transformation on the source array of points and stores the result in the destination array of points.
| src | The source array of data to be transformed. |
| srcOff | The offset of the first point in the source array. |
| dst | The destination array of data that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
inlinevirtual |
Performs the transformation on the source point and stores the result in the destination point.
| src | The source point to be transformed. |
| dst | The destination point that will hold the result of the transformation. |
|
inline |
Compares this AffineTransform with the specified Object.
Compares this AffineTransform with the specified Object. If the object is the same as this AffineTransform, this method returns true. Otherwise, this method checks if the Object is an instance of AffineTransform and if the values of the two AffineTransforms are equal.
| o | The object to compare this AffineTransform with. |
true if the object is the same as this AffineTransform, false otherwise.
|
inlinevirtual |
Gets the determinant of the matrix representation of this AffineTransform.
|
inline |
Returns a hash code value for the object.
|
inlinevirtual |
Gets an array filled with the values of this AffineTransform instance.
|
inlinevirtual |
Fills the matrix parameter with the values of this AffineTransform instance.
| matrix | the array to be filled with the values of this AffineTransform instance. |
|
inlinevirtual |
Fills the matrix parameter with the values of this AffineTransform instance.
| matrix | the array to be filled with the values of this AffineTransform instance. |
|
inlinestatic |
Get an affine transformation representing a counter-clockwise rotation over the passed angle
| angle | angle in radians to rotate over |
AffineTransform representing the rotation
|
inlinestatic |
Get an affine transformation representing a counter-clockwise rotation over the passed angle, using the passed point as the center of rotation
| angle | angle in radians to rotate over |
| x | x-coordinate of center of rotation |
| y | y-coordinate of center of rotation |
AffineTransform representing the rotation
|
inlinestatic |
Get a new AffineTransform instance representing a scale over the passed values
| scx | scale factor on the x-axis |
| scY | scale factor on the y-axis |
AffineTransform representing the scale
|
inlinevirtual |
Gets the scale factor of the x-axis.
|
inlinevirtual |
Gets the scale factor of the y-axis.
|
inlinestatic |
Get a new AffineTransform instance representing a shear over the passed values
| shx | shear factor on the x-axis |
| shy | shear factor on the y-axis |
AffineTransform representing the shear
|
inlinevirtual |
Gets the shear factor of the x-axis.
|
inlinevirtual |
Gets the shear factor of the y-axis.
|
inlinevirtual |
Method returns type of affine transformation.
Method returns type of affine transformation.
Transform matrix is m00 m01 m02 m10 m11 m12
According analytic geometry new basis vectors are (m00, m01) and (m10, m11), translation vector is (m02, m12). Original basis vectors are (1, 0) and (0, 1). Type transformations classification:
|
inlinestatic |
Get a new AffineTransform instance representing a translation over the passed values
| mx | x-coordinate of translation |
| my | y-coordinate of translation |
AffineTransform representing the translation
|
inlinevirtual |
Gets translation factor of the x-axis.
|
inlinevirtual |
Gets translation factor of the y-axis.
|
inlinevirtual |
Performs the inverse transformation on the source array of points and stores the result in the destination array of points.
| src | The source array of data to be transformed. |
| srcOff | The offset of the first point in the source array. |
| dst | The destination array of data that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
inlinevirtual |
Performs the inverse transformation on the source array of points and stores the result in the destination array of points.
| src | The source array of data to be transformed. |
| srcOff | The offset of the first point in the source array. |
| dst | The destination array of data that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
inlinevirtual |
Performs the inverse transformation on the source point and stores the result in the destination point.
| src | The source point to be transformed. |
| dst | The destination point that will hold the result of the transformation. |
|
inlinevirtual |
Gets whether this AffineTransform is an identity transformation.
true if this AffineTransform is an identity transformation, false otherwise.
|
inlinevirtual |
Multiply matrix of two AffineTransform objects
| t | - the AffineTransform object is a multiplicand. |
|
inlinevirtual |
Add a counter-clockwise rotation to this transformation
| angle | angle in radians to rotate over |
|
inlinevirtual |
Add a counter-clockwise rotation to this transformation, using the passed point as the center of rotation
| angle | angle in radians to rotate over |
| px | x-coordinate of center of rotation |
| py | y-coordinate of center of rotation |
|
inlinevirtual |
Sets this AffineTransform to the identity transformation.
|
inlinevirtual |
Set this affine transformation to represent a rotation over the passed angle
| angle | angle to rotate over in radians |
|
inlinevirtual |
Set this affine transformation to represent a rotation over the passed angle, using the passed point as the center of rotation
| angle | angle to rotate over in radians |
| px | x-coordinate of center of rotation |
| py | y-coordinate of center of rotation |
|
inlinevirtual |
Sets this AffineTransform to represent a scale transformation.
| scx | The value of the scale factor on the x-axis. |
| scy | The value of the scale factor on the y-axis. |
|
inlinevirtual |
Sets this AffineTransform to represent a shear transformation.
| shx | The value of the shear factor on the x-axis. |
| shy | The value of the shear factor on the y-axis. |
|
inlinevirtual |
Sets this AffineTransform to represent a translation transformation.
| mx | The value of the translation on the x-axis. |
| my | The value of the translation on the y-axis. |
|
inlinevirtual |
Sets the values of this AffineTransform instance to the values provided.
Sets the values of this AffineTransform instance to the values provided. The type of the transformation is set to TYPE_UNKNOWN.
| m00 | The value of the first row and first column of the matrix. |
| m10 | The value of the second row and first column of the matrix. |
| m01 | The value of the first row and second column of the matrix. |
| m11 | The value of the second row and second column of the matrix. |
| m02 | The value of the first row and third column of the matrix. |
| m12 | The value of the second row and third column of the matrix. |
|
inlinevirtual |
Sets the values of this AffineTransform instance to the values provided.
Sets the values of this AffineTransform instance to the values provided. The type of the transformation is set to TYPE_UNKNOWN.
| m00 | The value of the first row and first column of the matrix. |
| m10 | The value of the second row and first column of the matrix. |
| m01 | The value of the first row and second column of the matrix. |
| m11 | The value of the second row and second column of the matrix. |
| m02 | The value of the first row and third column of the matrix. |
| m12 | The value of the second row and third column of the matrix. |
|
inlinevirtual |
Sets the values of this AffineTransform instance to the values provided.
| t | The AffineTransform instance to be used. |
|
inlinevirtual |
Transform the array of points according to the values of this AffineTransform object.
| src | The array of points to be transformed. |
| srcOff | The offset of the first point in the array. |
| dst | The array of points that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
inlinevirtual |
Transform the array of points according to the values of this AffineTransform object.
| src | The array of points to be transformed. |
| srcOff | The offset of the first point in the array. |
| dst | The array of points that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
inlinevirtual |
Transform the array of points according to the values of this AffineTransform object.
| src | The array of points to be transformed. |
| srcOff | The offset of the first point in the array. |
| dst | The array of points that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
inlinevirtual |
Transform the array of points according to the values of this AffineTransform object.
| src | The array of points to be transformed. |
| srcOff | The offset of the first point in the array. |
| dst | The array of points that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
Transform the point according to the values of this AffineTransform object.
| src | The point to be transformed. |
| dst | The point that will hold the result of the transformation. |
|
inlinevirtual |
Transform the array of points according to the values of this AffineTransform object.
| src | The array of points to be transformed. |
| srcOff | The offset of the first point in the array. |
| dst | The array of points that will hold the result of the transformation. |
| dstOff | The offset of the first point in the destination array. |
| length | The number of points to be transformed. |
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().
|
static |
The type of affine transformation.
The type of affine transformation. See GetTransformType().