Class ShapeTransformUtil
java.lang.Object
com.itextpdf.kernel.geom.ShapeTransformUtil
Public helper class for transforming segments and paths.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BezierCurvetransformBezierCurve(BezierCurve bezierCurve, Matrix ctm) Method for transforming a bezier curve.static LinetransformLine(Line line, Matrix ctm) Method for transforming a line.static PathtransformPath(Path path, Matrix ctm) Method for transforming a path.private static Point[]transformPoints(Matrix ctm, Point... points) private static IShapetransformSegment(IShape segment, Matrix ctm) private static SubpathtransformSubpath(Subpath subpath, Matrix ctm)
-
Constructor Details
-
ShapeTransformUtil
public ShapeTransformUtil()
-
-
Method Details
-
transformBezierCurve
Method for transforming a bezier curve. The method creates a new transformed bezier curve without changing the original curve.- Parameters:
bezierCurve- the source bezier curve for transformationctm- the transformation matrix- Returns:
- the new transformed bezier curve
-
transformLine
-
transformPath
-
transformSubpath
-
transformSegment
-
transformPoints
-