set_scale


Description:

public void set_scale (double scale)

Sets the scale of the canvas.

The scale specifies the magnification factor of the canvas, e.g. if an item has a width of 2 pixels and the scale is set to 3, it will be displayed with a width of 2 x 3 = 6 pixels.

Parameters:

this

a Canvas.

scale

the new scale setting.