Matrix.scale

void scale(double sx, double sy)

Applies scaling by sx, sy to the transformation in matrix. The effect of the new transformation is to first scale the coordinates by sx and sy, then apply the original transformation to the coordinates.

Parameters

sxscale factor in the X direction
syscale factor in the Y direction