Share via


CGContext.ScaleCTM(nfloat, nfloat) 方法

定义

缩放当前转换矩阵。

public void ScaleCTM (nfloat sx, nfloat sy);
member this.ScaleCTM : nfloat * nfloat -> unit

参数

sx
nfloat

应用于 CTM 的 X 轴的比例乘数。

sy
nfloat

应用于 CTM 的 Y 轴的比例乘数。

注解

CGContext对 CTM) (当前转换矩阵的操作依赖于顺序且具有状态。 有关 的讨论和示例,ScaleCTM(nfloat, nfloat)请参阅GetCTM() 。 当前缩放因子乘以 sxsy

适用于

另请参阅

  • <xref:CoreGraphics.CGContext.ConcatCTM>
  • <xref:CoreGraphics.CGContext.RotateCTM>
  • GetCTM()
  • <xref:CoreGraphics.CGContext.TranslateCTM>