Share via


CGAffineTransform.Scale 方法

定义

重载

Scale(nfloat, nfloat)

修改仿射以按指定的数量级缩放。

Scale(CGAffineTransform, nfloat, nfloat)

按指定的数量级缩放仿射值并返回结果。

Scale(nfloat, nfloat, MatrixOrder)

Scale(nfloat, nfloat)

修改仿射以按指定的数量级缩放。

[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

参数

sx
nfloat

X 比例系数。

sy
nfloat

Y 比例系数。

属性

注解

此方法使用请求的缩放因子修改当前仿射。

此方法不等效于本机 CoreGraphics 的 CGAffineTransformScale 方法, (在这种情况下,请使用 M:CoreGraphics.CGAffineTransform.Scale (CoreGraphics.CGAffineTransform,System.Single,System.Single) 而不是) 。

适用于

Scale(CGAffineTransform, nfloat, nfloat)

按指定的数量级缩放仿射值并返回结果。

public static CoreGraphics.CGAffineTransform Scale (CoreGraphics.CGAffineTransform transform, nfloat sx, nfloat sy);
static member Scale : CoreGraphics.CGAffineTransform * nfloat * nfloat -> CoreGraphics.CGAffineTransform

参数

transform
CGAffineTransform

要缩放的仿射。

sx
nfloat

X 比例系数。

sy
nfloat

Y 比例系数。

返回

缩放的仿射。

注解

此方法等效于本机 CoreGraphics 的 CGAffineTransformScale 方法。

适用于

Scale(nfloat, nfloat, MatrixOrder)

public void Scale (nfloat sx, nfloat sy, CoreGraphics.MatrixOrder order);
member this.Scale : nfloat * nfloat * CoreGraphics.MatrixOrder -> unit

参数

sx
nfloat
sy
nfloat
order
MatrixOrder

适用于