klyn.gui.images.SvgImage.resize
method
public override resize(width as Int, height as Int) as Void:
Description

Resizes the logical SVG viewBox.

The SVG remains vectorial. The viewBox origin is preserved and only its width and height are changed.

Parameters
ParameterDescription
widthPreferred width.
heightPreferred height.
Example
icon.resize(32, 32)
assert icon.width == 32
assert icon.height == 32