ScaleHelperScaleF(Size, Single) Method

Scales the specified size by the provided scale factor.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static SizeF ScaleF(
	this Size size,
	float scale
)

Parameters

size  Size
The Size to be scaled.
scale  Single
The scale factor to be applied.

Return Value

SizeF
A SizeF representing the scaled size.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Size. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also