iText 8.0.5 API
iText.Layout.Properties.Transform Class Reference

This class is used to store and process multiple transform css property before drawing. More...

Classes

class   SingleTransform
  This class is used to store one transform function. More...
 

Public Member Functions

  Transform (int length)
  Creates a new Transform instance. More...
 
virtual void  AddSingleTransform (Transform.SingleTransform singleTransform)
  Adds a SingleTransform in a list of single transforms to process later. More...
 

Static Public Member Functions

static AffineTransform  GetAffineTransform (iText.Layout.Properties.Transform t, float width, float height)
  Converts the Transform instance, i.e. the list of SingleTransform instances, to the equivalent iText.Kernel.Geom.AffineTransform instance relatively to the available area, including resolving of percent values to point values. More...
 

Detailed Description

This class is used to store and process multiple transform css property before drawing.

Constructor & Destructor Documentation

◆ Transform()

iText.Layout.Properties.Transform.Transform ( int  length )
inline

Creates a new Transform instance.

Parameters
length the amount of SingleTransform instances that this Transform instant shall contain and be able to process

Member Function Documentation

◆ AddSingleTransform()

virtual void iText.Layout.Properties.Transform.AddSingleTransform ( Transform.SingleTransform  singleTransform )
inlinevirtual

Adds a SingleTransform in a list of single transforms to process later.

Parameters
singleTransform a SingleTransform instance

◆ GetAffineTransform()

static AffineTransform iText.Layout.Properties.Transform.GetAffineTransform ( iText.Layout.Properties.Transform  t,
float  width,
float  height 
)
inlinestatic

Converts the Transform instance, i.e. the list of SingleTransform instances, to the equivalent iText.Kernel.Geom.AffineTransform instance relatively to the available area, including resolving of percent values to point values.

Parameters
t a Transform instance to convert
width the width of available area, the point value of which is equivalent to 100% for percentage resolving
height the height of available area, the point value of which is equivalent to 100% for percentage resolving
Returns
resulting affine transformation instance, accumulated from Transform