[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Matrix.Scale

Scale Method

Scale(double)

Applies the scaling transformation.

Declaration
public Matrix Scale(double scaleFactor)
Public Function Scale(scaleFactor As Double) As Matrix
Parameters
Type Name Description
double scaleFactor

The value to scale by on the X and Y axes.

Returns
Type Description
Matrix

The scaled matrix.

Scale(double, double)

Applies the scaling transformation.

Declaration
public Matrix Scale(double sx, double sy)
Public Function Scale(sx As Double, sy As Double) As Matrix
Parameters
Type Name Description
double sx

The value to scale by on the X axis.

double sy

The value to scale by on the Y axis.

Returns
Type Description
Matrix

The scaled matrix.

Scale(double, double, PointF)

Applies the scaling transformation that is offset by a given center point.

Declaration
public Matrix Scale(double sx, double sy, PointF centerPoint)
Public Function Scale(sx As Double, sy As Double, centerPoint As PointF) As Matrix
Parameters
Type Name Description
double sx

The value to scale by on the X axis.

double sy

The value to scale by on the Y axis.

PointF centerPoint

The center offset.

Returns
Type Description
Matrix

The scaled matrix.

Scale(double, double, double, double)

Applies the scaling transformation that is offset by a given center point.

Declaration
public Matrix Scale(double sx, double sy, double cx, double cy)
Public Function Scale(sx As Double, sy As Double, cx As Double, cy As Double) As Matrix
Parameters
Type Name Description
double sx

The value to scale by on the X axis.

double sy

The value to scale by on the Y axis.

double cx

X-coordinate of the center offset.

double cy

Y-coordinate of the center offset.

Returns
Type Description
Matrix

The scaled matrix.