loadImage

abstract fun loadImage(bytes: ByteArray): LoadedImage

Loads an image for rendering. The image and all associated resources will be automatically cleaned up when the window is cleaned up, so callers will not need to worry about cleaning up images loaded with this method.