fromImage

Constructs an image source with a BufferedImage.

Return

the new image source

Parameters

image

the BufferedImage to use as an image source

fun fromImage(image: TexImageSource): ImageSource

Constructs an image source with an TexImageSource. The image's dimensions should not be greater than 2048 x 2048.

Return

the new image source

Parameters

image

the TexImageSource to use as an image source