Aspose::Pdf::Matrix::Scale method

Matrix::Scale(double, double, double&, double&) method

Scales x and y with the matrix using the following formula: x1 = Ax + Cy; y1 = Bx + Dy;.

void Aspose::Pdf::Matrix::Scale(double x, double y, double &x1, double &y1)
ParameterTypeDescription
xdoubleInput X coordinate
ydoubleInput Y coordinate
x1double&Output X coordinate
y1double&Output Y coordinate

See Also

Matrix::Scale(double, double, System::SharedPtr<Matrix>) method

Applies scaling to the given matrix.

static System::SharedPtr<Matrix> Aspose::Pdf::Matrix::Scale(double sx, double sy, System::SharedPtr<Matrix> source)
ParameterTypeDescription
sxdoubleThe scaling factor for the X-axis.
sydoubleThe scaling factor for the Y-axis.
sourceSystem::SharedPtr<Matrix>The matrix to scale.

ReturnValue

A new matrix that is the result of scaling the source matrix.

See Also