loadScaledImage

Loads an image and scales it to the default Alchemist's icon size.

Return

the resized icon

Parameters

p

the path where to load the image. The system resource loader is used to do so, with all its advantages


open fun loadScaledImage(p: String, size: Int): ImageIcon(source)

Loads an image and scales it to the desired size.

Return

the resized icon

Parameters

p

the path where to load the image. The system resource loader is used to do so, with all its advantages

size

the size which will be used both for x and y axes