Matrix.Transform

Transform(Point)

Transforms point using this matrix.

public Point Transform(Point p)
ParameterTypeDescription
pPointPoint which will be transformed.

Return Value

Transformation result.

Examples

Aspose.Pdf.DOM.Matrix m = new Aspose.Pdf.DOM.Matrix(new double[] { 1, 0, 0, 1, 10, 20 } );
Aspose.Pdf.Rectangle r = new Aspose.Pdf.Rectangle(0, 0, 100, 100);
Aspose.Pdf.Rectangle r1 = m.Transform(r);

See Also


Transform(double, double, out double, out double)

Transforms coordinates using this matrix.

public void Transform(double x, double y, out double x1, out double y1)
ParameterTypeDescription
xDoubleX coordinate.
yDoubleY coordinate.
x1Double&Transformed X coordinate.
y1Double&Transformed Y coordinate.

Examples

Aspose.Pdf.Matrix m = new Aspose.Pdf.Matrix(new double[] { 1, 0, 0, 1, 10, 20 } );
double x, y, x1, y1;
m.Transform(double x, double y, out double x1, out double y1);

See Also


Transform(Rectangle)

Transformes rectangle. If angle is not 90 * N degrees then bounding rectangle is returned.

public Rectangle Transform(Rectangle rect)
ParameterTypeDescription
rectRectangleRectangle to be transformed.

Return Value

Transformed rectangle.

Examples

Matrix m = new Matrix(new double[] { 1, 0, 0, 1, 10, 20 } );
Rectangle r = new Rectangle(0, 0, 100, 100);
Rectangle r1 = m.Transform(r1);

See Also