[]
        
(Showing Draft Content)

C1.Util.DX.RectF.Scale

Scale Method

Scale(RectF, float)

Scales all coordinates of a rectangle by the specified scaleFactor.

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

Scale(float)

Scales all coordinates of a rectangle by the specified scaleFactor.

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

Scale(RectF, float, float)

Scales all coordinates of a rectangle by the specified scaleX and scaleY.

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

Scale(float, float)

Scales all coordinates of a rectangle 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