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

Public Member Functions

  AffineTransform (iText.Kernel.Geom.AffineTransform t)
 
  AffineTransform (double m00, double m10, double m01, double m11, double m02, double m12)
 
  AffineTransform (float[] matrix)
 
  AffineTransform (double[] matrix)
 
virtual int  GetTransformType ()
  Method returns type of affine transformation. More...
 
virtual double  GetScaleX ()
 
virtual double  GetScaleY ()
 
virtual double  GetShearX ()
 
virtual double  GetShearY ()
 
virtual double  GetTranslateX ()
 
virtual double  GetTranslateY ()
 
virtual bool  IsIdentity ()
 
virtual void  GetMatrix (float[] matrix)
 
virtual void  GetMatrix (double[] matrix)
 
virtual double  GetDeterminant ()
 
virtual void  SetTransform (float m00, float m10, float m01, float m11, float m02, float m12)
 
virtual void  SetTransform (double m00, double m10, double m01, double m11, double m02, double m12)
 
virtual void  SetTransform (iText.Kernel.Geom.AffineTransform t)
 
virtual void  SetToIdentity ()
 
virtual void  SetToTranslation (double mx, double my)
 
virtual void  SetToScale (double scx, double scy)
 
virtual void  SetToShear (double shx, double shy)
 
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)
 
virtual void  PreConcatenate (iText.Kernel.Geom.AffineTransform t)
 
virtual iText.Kernel.Geom.AffineTransform  CreateInverse ()
 
virtual Point  Transform (Point src, Point dst)
 
virtual void  Transform (Point[] src, int srcOff, Point[] dst, int dstOff, int length)
 
virtual void  Transform (double[] src, int srcOff, double[] dst, int dstOff, int length)
 
virtual void  Transform (float[] src, int srcOff, float[] dst, int dstOff, int length)
 
virtual void  Transform (float[] src, int srcOff, double[] dst, int dstOff, int length)
 
virtual void  Transform (double[] src, int srcOff, float[] dst, int dstOff, int length)
 
virtual Point  DeltaTransform (Point src, Point dst)
 
virtual void  DeltaTransform (double[] src, int srcOff, double[] dst, int dstOff, int length)
 
virtual Point  InverseTransform (Point src, Point dst)
 
virtual void  InverseTransform (double[] src, int srcOff, double[] dst, int dstOff, int length)
 
virtual void  InverseTransform (float[] src, int srcOff, float[] dst, int dstOff, int length)
 
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)
 
override int  GetHashCode ()
 

Static Public Member Functions

static iText.Kernel.Geom.AffineTransform  GetTranslateInstance (double mx, double my)
 
static iText.Kernel.Geom.AffineTransform  GetScaleInstance (double scx, double scY)
 
static iText.Kernel.Geom.AffineTransform  GetShearInstance (double shx, double shy)
 
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...
 

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.

◆ 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

◆ 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

◆ 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

◆ 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

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