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

scale(x:y:anchor:)

Scales this shape without changing its bounding frame. この形状をそれの境界フレームを変更することなく拡大縮小します。

Declaration 宣言

func scale(x: CGFloat = 1, y: CGFloat = 1, anchor: UnitPoint = .center) -> ScaledShape<Self>

Return Value 戻り値

A scaled form of this shape. この形状の拡大縮小された形態。

Parameters パラメータ

x

The multiplication factor used to resize this shape along its x-axis. この形状をそれのx軸に沿って大きさ変更するために使われる増倍率。

y

The multiplication factor used to resize this shape along its y-axis. この形状をそれのy軸に沿って大きさ変更するために使われる増倍率。

Discussion 議論

Both the x and y multiplication factors halve their respective dimension’s size when set to 0.5, maintain their existing size when set to 1, double their size when set to 2, and so forth. xy増倍率の両方とも、0.5に設定される場合めいめいの次元のもつ大きさを半分にします、1に設定される場合それらの既存の大きさを保守します、2に設定される場合それらの大きさを倍にします、などなど。

See Also 参照

Transforming a Shape