Transform.Scale Method (Vector2f, Vector2f)

SFML.Net

TransformScale Method (Vector2f, Vector2f)
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)
Syntax
public void Scale(
	Vector2f factors,
	Vector2f center
)
Public Sub Scale ( 
	factors As Vector2f,
	center As Vector2f
)
public:
void Scale(
	Vector2f factors, 
	Vector2f center
)
member Scale : 
        factors : Vector2f * 
        center : Vector2f -> unit 

Parameters

factors
Type: SFML.SystemVector2f
Scaling factors
center
Type: SFML.SystemVector2f
Center of scaling
See Also