ScaleHelperScale(Int32, Single) Method
Scales the specified size by the provided scale factor.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static int Scale(
this int size,
float scale
)
<ExtensionAttribute>
Public Shared Function Scale (
size As Integer,
scale As Single
) As Integer
public:
[ExtensionAttribute]
static int Scale(
int size,
float scale
)
[<ExtensionAttribute>]
static member Scale :
size : int *
scale : float32 -> int
- size Int32
- The integer value to be scaled.
- scale Single
- The scale factor to be applied.
Int32A rounded integer value representing the scaled size.In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. 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).