scale method

scale

Adds a scaling transformation to the canvas units by x horizontally and by y vertically.

def scale(self, x, y):
    ...
ParameterTypeDescription
xfloatScaling factor in the horizontal direction.
yfloatScaling factor in the vertical direction.

See Also