void resizeCanvas (UnitValue width, UnitValue height, AnchorPosition anchor)
Changes the size of the canvas.