GraphicsExtensionsScale Method

Applies the specified scaling operation to the transformation matrix of this IGraphics by prepending it to the object's transformation matrix.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.2.0
C#
public static void Scale(
	this IGraphics g,
	float factor
)

Parameters

g  IGraphics
factor  Single
Scale factor in both directions.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraphics. 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