SFML.Net
TransformScale Method (Single, Single, Single, Single) |
Combine the current transform with a scaling.
The center of scaling is provided for convenience as a second
argument, so that you can build scaling around arbitrary points
more easily (and efficiently) than the usual
Translate(-center); Scale(factors); Translate(center).
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public void Scale( float scaleX, float scaleY, float centerX, float centerY )
Public Sub Scale ( scaleX As Single, scaleY As Single, centerX As Single, centerY As Single )
public: void Scale( float scaleX, float scaleY, float centerX, float centerY )
member Scale : scaleX : float32 * scaleY : float32 * centerX : float32 * centerY : float32 -> unit
Parameters
- scaleX
- Type: SystemSingle
Scaling factor on X axis - scaleY
- Type: SystemSingle
Scaling factor on Y axis - centerX
- Type: SystemSingle
X coordinate of the center of scaling - centerY
- Type: SystemSingle
Y coordinate of the center of scaling
