CGAffineTransform.Scale 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Scale(nfloat, nfloat) |
修改 affine 以依指定的大小進行調整。 |
Scale(CGAffineTransform, nfloat, nfloat) |
依指定的大小調整 affine,並傳回結果。 |
Scale(nfloat, nfloat, MatrixOrder) |
Scale(nfloat, nfloat)
修改 affine 以依指定的大小進行調整。
[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)
依指定的大小調整 affine,並傳回結果。
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