Basics
Guides
API Reference
Basics
Guides
API Reference
[18:14] static extends: object
Static helper around FXGL's Kotlin-only top-level functions in
com.almasb.fxgl.texture.ImagesKt. The Kotlin source declares
these as package-level (fun toImage(node: Node): Image); the
compiler emits them as static methods on an ImagesKt class
that has no Aussom wrapper of its own.
Use:
img = Images.toImage(myNodeWrapper);
tex = new Texture(img);
toImage (Node)
Snapshots a JavaFX Node into an Image. The returned AJO wraps
javafx.scene.image.Imageand can be handed tonew Texture(...)or any setter that takes an Image.
Node is an Aussom wrapper whose .obj holds a JavaFX Node, or a raw AussomJavaObject around a Node.An AussomJavaObject around javafx.scene.image.Image.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.