klyn.gui.images.Image.resize
method
public abstract resize(width as Int, height as Int) as Void
Description

Resizes the logical image area.

Raster images keep the same decoded source and update the logical render dimensions. SVG images update their logical viewBox size, preserving the current viewBox origin.

Parameters
ParameterDescription
widthThe new width of the image.
heightThe new height of the image.
Example
image = Image.getImage("image.bmp")
image.resize(200, 200)