A helper method that creates a standard scale matrix with the specified values.
public static Matrix CreateScaleMatrix(
float ,
float ,
AnnPoint ,
AnnUnitConverter
)
'Declaration
Public Shared Function CreateScaleMatrix( _
ByVal As Single, _
ByVal As Single, _
ByVal As AnnPoint, _
ByVal As AnnUnitConverter _
) As Matrix
'Usage
Dim sx As Single
Dim sy As Single
Dim origin As AnnPoint
Dim unitConverter As AnnUnitConverter
Dim value As Matrix
value = AnnObject.CreateScaleMatrix(sx, sy, origin, unitConverter)
public:
static Matrix^ CreateScaleMatrix(
float ,
float ,
AnnPoint ,
AnnUnitConverter^
)
Parameters
- sx
- The value by which to scale in the x-axis direction.
- sy
- The value by which to scale in the y-axis direction.
- origin
- An AnnPoint structure that represents the center of the scale operation
- unitConverter
- An AnnUnitConverter object that can be used to convert the origin point from one unit to another (usually to pixels).
Return Value