ClippedContentModifyCurrentTransformationMatrix Method (Double, Double, Double, Double, Double, Double)

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Modifies the current transformation matrix.

Namespace:  Apitron.PDF.Kit.FixedLayout.Content
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public void ModifyCurrentTransformationMatrix(
	double a,
	double b,
	double c,
	double d,
	double e,
	double f
)

Parameters

a
Type: SystemDouble
The a.
b
Type: SystemDouble
The b.
c
Type: SystemDouble
The c.
d
Type: SystemDouble
The d.
e
Type: SystemDouble
The e.
f
Type: SystemDouble
The f.
Examples

C#
 // create text object
TextObject text = new TextObject("Helvetica", 34);
text.SetTextMatrix(1, 0, 0, 1, 10, 10);
text.AppendText("Hello world!");

ClippedContent clippedContent = new ClippedContent(0, 0, 1000, 1000);
clippedContent.SaveGraphicsState();
// Translations
clippedContent.ModifyCurrentTransformationMatrix(1, 0, 0, 1, 130, 30);
OR
// Scale transformation
clippedContent.ModifyCurrentTransformationMatrix(2, 0, 0, 2, 0, 0);
OR
// Rotate transformation
clippedContent.ModifyCurrentTransformationMatrix(Math.Cos(a), Math.Sin(a), -Math.Sin(a), Math.Cos(a), 130, 30);
OR
// Skew transformation
clippedContent.ModifyCurrentTransformationMatrix(1, Math.Tan(a), Math.Tan(-b), 1, 300, 300);
clippedContent.AppendText(text);
clippedContent.RestoreGraphicsState();
See Also

Reference