scale

abstract fun scale(x: Double = 1.0, y: Double = 1.0): AffineTransform2D

Append a scale operation (around the Origin) to this transform.

Return

a new transform

Parameters

x

amount to scale in the x-direction

y

amount to scale in the y-direction


fun scale(around: Point, x: Double = 1.0, y: Double = 1.0): AffineTransform2D

Append a scale operation to this transform, that scales around the given point.

Return

a new transform

Parameters

around

this point

x

amount to scale in the x-direction

y

amount to scale in the y-direction