[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Matrix.CreateScale

CreateScale Method

CreateScale(double)

Creates a scaling matrix that scales uniformly with the given scale.

Declaration
public static Matrix CreateScale(double scale)
Public Shared Function CreateScale(scale As Double) As Matrix
Parameters
Type Name Description
double scale

The uniform scale to use.

Returns
Type Description
Matrix

The scaling matrix.

CreateScale(double, PointF)

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

Declaration
public static Matrix CreateScale(double scale, PointF centerPoint)
Public Shared Function CreateScale(scale As Double, centerPoint As PointF) As Matrix
Parameters
Type Name Description
double scale

The uniform scale to use.

PointF centerPoint

The center offset.

Returns
Type Description
Matrix

The scaling matrix.

CreateScale(double, double, double)

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

Declaration
public static Matrix CreateScale(double scale, double cx, double cy)
Public Shared Function CreateScale(scale As Double, cx As Double, cy As Double) As Matrix
Parameters
Type Name Description
double scale

The uniform scale to use.

double cx

X-coordinate of the center offset.

double cy

Y-coordinate of the center offset.

Returns
Type Description
Matrix

The scaling matrix.

CreateScale(double, double)

Creates a scaling matrix from the specified X and Y components.

Declaration
public static Matrix CreateScale(double xScale, double yScale)
Public Shared Function CreateScale(xScale As Double, yScale As Double) As Matrix
Parameters
Type Name Description
double xScale

The value to scale by on the X axis.

double yScale

The value to scale by on the Y axis.

Returns
Type Description
Matrix

The scaling matrix.

CreateScale(double, double, PointF)

Creates a scaling matrix that is offset by a given center point.

Declaration
public static Matrix CreateScale(double xScale, double yScale, PointF centerPoint)
Public Shared Function CreateScale(xScale As Double, yScale As Double, centerPoint As PointF) As Matrix
Parameters
Type Name Description
double xScale

The value to scale by on the X axis.

double yScale

The value to scale by on the Y axis.

PointF centerPoint

The center offset.

Returns
Type Description
Matrix

The scaling matrix.

CreateScale(double, double, double, double)

Creates a scaling matrix that is offset by a given center point.

Declaration
public static Matrix CreateScale(double xScale, double yScale, double cx, double cy)
Public Shared Function CreateScale(xScale As Double, yScale As Double, cx As Double, cy As Double) As Matrix
Parameters
Type Name Description
double xScale

The value to scale by on the X axis.

double yScale

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 scaling matrix.