[]
        
(Showing Draft Content)

C1.Util.DX.Size2F.Scale

Scale Method

Scale(Size2F, float)

Scales the width and height by the specified scaleFactor.

Declaration
public static Size2F Scale(Size2F sz, float scaleFactor)
Public Shared Function Scale(sz As Size2F, scaleFactor As Single) As Size2F
Parameters
Type Name Description
Size2F sz
float scaleFactor
Returns
Type Description
Size2F

Scale(float)

Scales the width and height by the specified scaleFactor.

Declaration
public void Scale(float scaleFactor)
Public Sub Scale(scaleFactor As Single)
Parameters
Type Name Description
float scaleFactor

Scale(Size2F, float, float)

Scales the width and height by the specified scaleX and scaleY.

Declaration
public static Size2F Scale(Size2F sz, float scaleX, float scaleY)
Public Shared Function Scale(sz As Size2F, scaleX As Single, scaleY As Single) As Size2F
Parameters
Type Name Description
Size2F sz
float scaleX
float scaleY
Returns
Type Description
Size2F

Scale(float, float)

Scales the width and height by the specified scaleX and scaleY.

Declaration
public void Scale(float scaleX, float scaleY)
Public Sub Scale(scaleX As Single, scaleY As Single)
Parameters
Type Name Description
float scaleX
float scaleY