klyn.gui.images.BitmapImage.setText
method
public setText(text as String, family as String = "sans-serif", size as Int = 32, rgba as Long = 0x202030ffl, x as Int = 0, y as Int = 0) as Void
Description

Replaces pixels with antialiased text, on a transparent background. Native font rasterization is used; the text itself stays in the caller's document model for future editing. rgba is 0xRRGGBBAA. Throws IOException when a font renderer is unavailable. The origin may be negative; glyphs are clipped to the bitmap, including when cropping an editable text layer. Example: image.setText("Bonjour", "sans-serif", 32, 0x202030ffl, x=20, y=10).