Instance Method インスタンスメソッド

scaleBy(x:y:)

Scales subsequent drawing operations by an amount in each dimension.

Declaration 宣言

mutating func scaleBy(x: CGFloat, y: CGFloat)

Parameters パラメータ

x

The amount to scale in the horizontal direction.

y

The amount to scale in the vertical direction.

Discussion 議論

Calling this method is equivalent to updating the context’s transform directly using the given scale factors:


transform = transform.scaledBy(x: x, y: y)

See Also 参照

Applying Transforms