GraphicsExtensionsScale Method
Applies the specified scaling operation to the transformation matrix of this
IGraphics by prepending it to the object's transformation matrix.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.2.0
public static void Scale(
this IGraphics g,
float factor
)
<ExtensionAttribute>
Public Shared Sub Scale (
g As IGraphics,
factor As Single
)
public:
[ExtensionAttribute]
static void Scale(
IGraphics^ g,
float factor
)
[<ExtensionAttribute>]
static member Scale :
g : IGraphics *
factor : float32 -> unit
- g IGraphics
- factor Single
- Scale factor in both directions.
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).