fromText

fun fromText(width: Int, height: Int, text: String): Image

Creates a grayscale image from the provided text string.

Return

An Image object representing the created text image.

Parameters

width

The width of the image.

height

The height of the image.

text

The text to render in the image.