iText 9.6.0 API
iText.Kernel.Geom.AffineTransform Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AffineTransform() [1/5]

iText.Kernel.Geom.AffineTransform.AffineTransform ( )
inline

Create an empty AffineTransform instance.

Create an empty AffineTransform instance. The default type is for the transformation is TYPE_IDENTITY

◆ AffineTransform() [2/5]

iText.Kernel.Geom.AffineTransform.AffineTransform ( iText.Kernel.Geom.AffineTransform  t )
inline

Will create a new AffineTransform instance with the values provided from the original AffineTransform instance.

Parameters
t The AffineTransform class to be used.

◆ AffineTransform() [3/5]

iText.Kernel.Geom.AffineTransform.AffineTransform ( double  m00,
double  m10,
double  m01,
double  m11,
double  m02,
double  m12 
)
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.

Parameters
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.

◆ AffineTransform() [4/5]

iText.Kernel.Geom.AffineTransform.AffineTransform ( float[]  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.

Parameters
matrix The array of values to be used for the transformation matrix.

◆ AffineTransform() [5/5]

iText.Kernel.Geom.AffineTransform.AffineTransform ( double[]  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.

Parameters
matrix The array of values to be used for the transformation matrix.

Member Function Documentation

◆ Clone()

virtual iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.Clone ( )
inlinevirtual

Creates a "deep copy" of this AffineTransform, meaning the object returned by this method will be independent of the object being cloned.

Returns
the copied AffineTransform.

◆ Concatenate()

virtual void iText.Kernel.Geom.AffineTransform.Concatenate ( iText.Kernel.Geom.AffineTransform  t )
inlinevirtual

Multiply matrix of two AffineTransform objects

Parameters
t - the AffineTransform object is a multiplier.

◆ CreateInverse()

virtual iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.CreateInverse ( )
inlinevirtual

Creates a new AffineTransform object that is invert of this AffineTransform object.

Returns
a new AffineTransform object that is invert of this AffineTransform object.

◆ DeltaTransform() [1/2]

virtual void iText.Kernel.Geom.AffineTransform.DeltaTransform ( double[]  src,
int  srcOff,
double[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Performs the delta transformation on the source array of points and stores the result in the destination array of points.

Parameters
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.

◆ DeltaTransform() [2/2]

virtual Point iText.Kernel.Geom.AffineTransform.DeltaTransform ( Point  src,
Point  dst 
)
inlinevirtual

Performs the transformation on the source point and stores the result in the destination point.

Parameters
src The source point to be transformed.
dst The destination point that will hold the result of the transformation.
Returns
The modified destination point.

◆ Equals()

override bool iText.Kernel.Geom.AffineTransform.Equals ( Object  o )
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.

Parameters
o The object to compare this AffineTransform with.
Returns

true if the object is the same as this AffineTransform, false otherwise.

◆ GetDeterminant()

virtual double iText.Kernel.Geom.AffineTransform.GetDeterminant ( )
inlinevirtual

Gets the determinant of the matrix representation of this AffineTransform.

Returns
the determinant of the matrix representation of this AffineTransform.

◆ GetHashCode()

override int iText.Kernel.Geom.AffineTransform.GetHashCode ( )
inline

Returns a hash code value for the object.

Returns
a hash code value for this object.

◆ GetMatrix() [1/3]

virtual float [] iText.Kernel.Geom.AffineTransform.GetMatrix ( )
inlinevirtual

Gets an array filled with the values of this AffineTransform instance.

Returns
an array filled with the values of this AffineTransform instance.

◆ GetMatrix() [2/3]

virtual void iText.Kernel.Geom.AffineTransform.GetMatrix ( double[]  matrix )
inlinevirtual

Fills the matrix parameter with the values of this AffineTransform instance.

Parameters
matrix the array to be filled with the values of this AffineTransform instance.

◆ GetMatrix() [3/3]

virtual void iText.Kernel.Geom.AffineTransform.GetMatrix ( float[]  matrix )
inlinevirtual

Fills the matrix parameter with the values of this AffineTransform instance.

Parameters
matrix the array to be filled with the values of this AffineTransform instance.

◆ GetRotateInstance() [1/2]

static iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.GetRotateInstance ( double  angle )
inlinestatic

Get an affine transformation representing a counter-clockwise rotation over the passed angle

Parameters
angle angle in radians to rotate over
Returns

AffineTransform representing the rotation

◆ GetRotateInstance() [2/2]

static iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.GetRotateInstance ( double  angle,
double  x,
double  y 
)
inlinestatic

Get an affine transformation representing a counter-clockwise rotation over the passed angle, using the passed point as the center of rotation

Parameters
angle angle in radians to rotate over
x x-coordinate of center of rotation
y y-coordinate of center of rotation
Returns

AffineTransform representing the rotation

◆ GetScaleInstance()

static iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.GetScaleInstance ( double  scx,
double  scY 
)
inlinestatic

Get a new AffineTransform instance representing a scale over the passed values

Parameters
scx scale factor on the x-axis
scY scale factor on the y-axis
Returns

AffineTransform representing the scale

◆ GetScaleX()

virtual double iText.Kernel.Geom.AffineTransform.GetScaleX ( )
inlinevirtual

Gets the scale factor of the x-axis.

Returns
the scale factor of the x-axis.

◆ GetScaleY()

virtual double iText.Kernel.Geom.AffineTransform.GetScaleY ( )
inlinevirtual

Gets the scale factor of the y-axis.

Returns
the scale factor of the y-axis.

◆ GetShearInstance()

static iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.GetShearInstance ( double  shx,
double  shy 
)
inlinestatic

Get a new AffineTransform instance representing a shear over the passed values

Parameters
shx shear factor on the x-axis
shy shear factor on the y-axis
Returns

AffineTransform representing the shear

◆ GetShearX()

virtual double iText.Kernel.Geom.AffineTransform.GetShearX ( )
inlinevirtual

Gets the shear factor of the x-axis.

Returns
the shear factor of the x-axis.

◆ GetShearY()

virtual double iText.Kernel.Geom.AffineTransform.GetShearY ( )
inlinevirtual

Gets the shear factor of the y-axis.

Returns
the shear factor of the y-axis.

◆ GetTransformType()

virtual int iText.Kernel.Geom.AffineTransform.GetTransformType ( )
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:

Returns
the type of this AffineTransform

◆ GetTranslateInstance()

static iText.Kernel.Geom.AffineTransform iText.Kernel.Geom.AffineTransform.GetTranslateInstance ( double  mx,
double  my 
)
inlinestatic

Get a new AffineTransform instance representing a translation over the passed values

Parameters
mx x-coordinate of translation
my y-coordinate of translation
Returns

AffineTransform representing the translation

◆ GetTranslateX()

virtual double iText.Kernel.Geom.AffineTransform.GetTranslateX ( )
inlinevirtual

Gets translation factor of the x-axis.

Returns
the translation factor of the x-axis.

◆ GetTranslateY()

virtual double iText.Kernel.Geom.AffineTransform.GetTranslateY ( )
inlinevirtual

Gets translation factor of the y-axis.

Returns
the translation factor of the y-axis.

◆ InverseTransform() [1/3]

virtual void iText.Kernel.Geom.AffineTransform.InverseTransform ( double[]  src,
int  srcOff,
double[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Performs the inverse transformation on the source array of points and stores the result in the destination array of points.

Parameters
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.

◆ InverseTransform() [2/3]

virtual void iText.Kernel.Geom.AffineTransform.InverseTransform ( float[]  src,
int  srcOff,
float[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Performs the inverse transformation on the source array of points and stores the result in the destination array of points.

Parameters
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.

◆ InverseTransform() [3/3]

virtual Point iText.Kernel.Geom.AffineTransform.InverseTransform ( Point  src,
Point  dst 
)
inlinevirtual

Performs the inverse transformation on the source point and stores the result in the destination point.

Parameters
src The source point to be transformed.
dst The destination point that will hold the result of the transformation.
Returns
The modified destination point.

◆ IsIdentity()

virtual bool iText.Kernel.Geom.AffineTransform.IsIdentity ( )
inlinevirtual

Gets whether this AffineTransform is an identity transformation.

Returns

true if this AffineTransform is an identity transformation, false otherwise.

◆ PreConcatenate()

virtual void iText.Kernel.Geom.AffineTransform.PreConcatenate ( iText.Kernel.Geom.AffineTransform  t )
inlinevirtual

Multiply matrix of two AffineTransform objects

Parameters
t - the AffineTransform object is a multiplicand.

◆ Rotate() [1/2]

virtual void iText.Kernel.Geom.AffineTransform.Rotate ( double  angle )
inlinevirtual

Add a counter-clockwise rotation to this transformation

Parameters
angle angle in radians to rotate over

◆ Rotate() [2/2]

virtual void iText.Kernel.Geom.AffineTransform.Rotate ( double  angle,
double  px,
double  py 
)
inlinevirtual

Add a counter-clockwise rotation to this transformation, using the passed point as the center of rotation

Parameters
angle angle in radians to rotate over
px x-coordinate of center of rotation
py y-coordinate of center of rotation

◆ SetToIdentity()

virtual void iText.Kernel.Geom.AffineTransform.SetToIdentity ( )
inlinevirtual

Sets this AffineTransform to the identity transformation.

◆ SetToRotation() [1/2]

virtual void iText.Kernel.Geom.AffineTransform.SetToRotation ( double  angle )
inlinevirtual

Set this affine transformation to represent a rotation over the passed angle

Parameters
angle angle to rotate over in radians

◆ SetToRotation() [2/2]

virtual void iText.Kernel.Geom.AffineTransform.SetToRotation ( double  angle,
double  px,
double  py 
)
inlinevirtual

Set this affine transformation to represent a rotation over the passed angle, using the passed point as the center of rotation

Parameters
angle angle to rotate over in radians
px x-coordinate of center of rotation
py y-coordinate of center of rotation

◆ SetToScale()

virtual void iText.Kernel.Geom.AffineTransform.SetToScale ( double  scx,
double  scy 
)
inlinevirtual

Sets this AffineTransform to represent a scale transformation.

Parameters
scx The value of the scale factor on the x-axis.
scy The value of the scale factor on the y-axis.

◆ SetToShear()

virtual void iText.Kernel.Geom.AffineTransform.SetToShear ( double  shx,
double  shy 
)
inlinevirtual

Sets this AffineTransform to represent a shear transformation.

Parameters
shx The value of the shear factor on the x-axis.
shy The value of the shear factor on the y-axis.

◆ SetToTranslation()

virtual void iText.Kernel.Geom.AffineTransform.SetToTranslation ( double  mx,
double  my 
)
inlinevirtual

Sets this AffineTransform to represent a translation transformation.

Parameters
mx The value of the translation on the x-axis.
my The value of the translation on the y-axis.

◆ SetTransform() [1/3]

virtual void iText.Kernel.Geom.AffineTransform.SetTransform ( double  m00,
double  m10,
double  m01,
double  m11,
double  m02,
double  m12 
)
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.

Parameters
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.

◆ SetTransform() [2/3]

virtual void iText.Kernel.Geom.AffineTransform.SetTransform ( float  m00,
float  m10,
float  m01,
float  m11,
float  m02,
float  m12 
)
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.

Parameters
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.

◆ SetTransform() [3/3]

virtual void iText.Kernel.Geom.AffineTransform.SetTransform ( iText.Kernel.Geom.AffineTransform  t )
inlinevirtual

Sets the values of this AffineTransform instance to the values provided.

Parameters
t The AffineTransform instance to be used.

◆ Transform() [1/6]

virtual void iText.Kernel.Geom.AffineTransform.Transform ( double[]  src,
int  srcOff,
double[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Transform the array of points according to the values of this AffineTransform object.

Parameters
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() [2/6]

virtual void iText.Kernel.Geom.AffineTransform.Transform ( double[]  src,
int  srcOff,
float[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Transform the array of points according to the values of this AffineTransform object.

Parameters
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() [3/6]

virtual void iText.Kernel.Geom.AffineTransform.Transform ( float[]  src,
int  srcOff,
double[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Transform the array of points according to the values of this AffineTransform object.

Parameters
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() [4/6]

virtual void iText.Kernel.Geom.AffineTransform.Transform ( float[]  src,
int  srcOff,
float[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Transform the array of points according to the values of this AffineTransform object.

Parameters
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() [5/6]

virtual Point iText.Kernel.Geom.AffineTransform.Transform ( Point  src,
Point  dst 
)
inlinevirtual

Transform the point according to the values of this AffineTransform object.

Parameters
src The point to be transformed.
dst The point that will hold the result of the transformation.
Returns
The point that holds the result of the transformation.

◆ Transform() [6/6]

virtual void iText.Kernel.Geom.AffineTransform.Transform ( Point[]  src,
int  srcOff,
Point[]  dst,
int  dstOff,
int  length 
)
inlinevirtual

Transform the array of points according to the values of this AffineTransform object.

Parameters
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.

Member Data Documentation

◆ TYPE_FLIP

const int iText.Kernel.Geom.AffineTransform.TYPE_FLIP = 64
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_GENERAL_ROTATION

const int iText.Kernel.Geom.AffineTransform.TYPE_GENERAL_ROTATION = 16
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_GENERAL_SCALE

const int iText.Kernel.Geom.AffineTransform.TYPE_GENERAL_SCALE = 4
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_GENERAL_TRANSFORM

const int iText.Kernel.Geom.AffineTransform.TYPE_GENERAL_TRANSFORM = 32
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_IDENTITY

const int iText.Kernel.Geom.AffineTransform.TYPE_IDENTITY = 0
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_MASK_ROTATION

const int iText.Kernel.Geom.AffineTransform.TYPE_MASK_ROTATION = TYPE_QUADRANT_ROTATION | TYPE_GENERAL_ROTATION
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_MASK_SCALE

const int iText.Kernel.Geom.AffineTransform.TYPE_MASK_SCALE = TYPE_UNIFORM_SCALE | TYPE_GENERAL_SCALE
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_QUADRANT_ROTATION

const int iText.Kernel.Geom.AffineTransform.TYPE_QUADRANT_ROTATION = 8
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_TRANSLATION

const int iText.Kernel.Geom.AffineTransform.TYPE_TRANSLATION = 1
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().

◆ TYPE_UNIFORM_SCALE

const int iText.Kernel.Geom.AffineTransform.TYPE_UNIFORM_SCALE = 2
static

The type of affine transformation.

The type of affine transformation. See GetTransformType().