CGAffineTransform.Scale 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
Scale(nfloat, nfloat) |
Modify the affine to scale by the specified magnitudes. |
Scale(CGAffineTransform, nfloat, nfloat) |
Scales the affine by the specified magnitudes and returns the result. |
Scale(nfloat, nfloat, MatrixOrder) |
Scale(nfloat, nfloat)
Modify the affine to scale by the specified magnitudes.
[Foundation.Advice("By default, the new operation is applied after the old operation: t' = t * [ sx 0 0 sy 0 0 ].\nTo have the same behavior as the native Swift API, pass 'MatrixOrder.Prepend' to 'Scale (nfloat, nfloat, MatrixOrder)'.")]
public void Scale (nfloat sx, nfloat sy);
public void Scale (nfloat sx, nfloat sy);
member this.Scale : nfloat * nfloat -> unit
Parameters
- sx
- nfloat
The X scale factor.
- sy
- nfloat
The Y scale factor.
- Attributes
Remarks
This method modifies the current affine with the requested scaling factors.
This method is not equivalent to the native CoreGraphics' CGAffineTransformScale method (in which case use M:CoreGraphics.CGAffineTransform.Scale(CoreGraphics.CGAffineTransform,System.Single,System.Single) instead).
Applies to
Scale(CGAffineTransform, nfloat, nfloat)
Scales the affine by the specified magnitudes and returns the result.
public static CoreGraphics.CGAffineTransform Scale (CoreGraphics.CGAffineTransform transform, nfloat sx, nfloat sy);
static member Scale : CoreGraphics.CGAffineTransform * nfloat * nfloat -> CoreGraphics.CGAffineTransform
Parameters
- transform
- CGAffineTransform
The affine to scale.
- sx
- nfloat
The X scale factor.
- sy
- nfloat
The Y scale factor.
Returns
The scaled affine.
Remarks
This method is equivalent to the native CoreGraphics' CGAffineTransformScale method.
Applies to
Scale(nfloat, nfloat, MatrixOrder)
public void Scale (nfloat sx, nfloat sy, CoreGraphics.MatrixOrder order);
member this.Scale : nfloat * nfloat * CoreGraphics.MatrixOrder -> unit
Parameters
- sx
- nfloat
- sy
- nfloat
- order
- MatrixOrder