SKMatrix.CreateScale Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateScale(Single, Single) |
Creates a scaling matrix. |
| CreateScale(Single, Single, Single, Single) |
Creates a scaling matrix around a pivot point. |
CreateScale(Single, Single, Single, Single)
Creates a scaling matrix around a pivot point.
public static SkiaSharp.SKMatrix CreateScale(float x, float y, float pivotX, float pivotY);
Parameters
- x
- Single
The scale factor in the x-direction.
- y
- Single
The scale factor in the y-direction.
- pivotX
- Single
The x-coordinate of the pivot point.
- pivotY
- Single
The y-coordinate of the pivot point.
Returns
Returns the new scaling matrix.