ScaleHelperScale(Size, PointF) 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 Size Scale(
this Size size,
PointF scale
)
<ExtensionAttribute>
Public Shared Function Scale (
size As Size,
scale As PointF
) As Size
public:
[ExtensionAttribute]
static Size Scale(
Size size,
PointF scale
)
[<ExtensionAttribute>]
static member Scale :
size : Size *
scale : PointF -> Size
- size Size
- The Size to be scaled.
- scale PointF
- The scale factor to be applied, represented as a PointF where X is the horizontal scale and Y is the vertical scale.
SizeA rounded
Size representing the scaled size.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).