Table of Contents

Class Transform

Namespace
iText.Layout.Properties
Assembly
itext.layout.dll

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

public class Transform
Inheritance
Transform
Inherited Members

Constructors

Transform(int)

Creates a new Transform instance.

public Transform(int length)

Parameters

length int

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

Methods

AddSingleTransform(SingleTransform)

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

public virtual void AddSingleTransform(Transform.SingleTransform singleTransform)

Parameters

singleTransform Transform.SingleTransform

a Transform.SingleTransform instance

GetAffineTransform(Transform, float, float)

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

public static AffineTransform GetAffineTransform(Transform t, float width, float height)

Parameters

t Transform

a Transform instance to convert

width float

the width of available area, the point value of which is equivalent to 100% for percentage resolving

height float

the height of available area, the point value of which is equivalent to 100% for percentage resolving

Returns

AffineTransform

resulting affine transformation instance, accumulated from Transform