klyn.gui.images.SvgImage.load
method
public override load(fileName as String) as Void:
Description

Loads another SVG file into this image descriptor.

The native renderer parses and caches the document when it is first rendered. load updates the source path and clears the explicit viewBox override, so the file viewBox is used until resize or crop is called.

Parameters
ParameterDescription
fileNameSVG file path.
Example
icon = SvgImage()
icon.load("assets/icons/project-explorer.svg")