View.zoom

Resize the view rectangle relatively to its current size.

Resizing the view simulates a zoom, as the zone displayed on screen grows or shrinks. factor is a multiplier:

  • 1 keeps the size unchanged.
  • > 1 makes the view bigger (objects appear smaller).
  • < 1 makes the view smaller (objects appear bigger).
struct View
void
zoom
(
float factor
)

Parameters

factor
Type: float

Zoom factor to apply

Meta