capture

inline fun Node.capture(image: WritableImage? = null, configuration: SnapshotParameters.() -> Unit = { }, noinline callback: (SnapshotResult) -> Unit)

Takes a snapshot of this node at the next frame and calls the specified callback method when the image is ready.


inline fun Scene.capture(image: WritableImage? = null, noinline callback: (SnapshotResult) -> Unit)

Takes a snapshot of this scene at the next frame and calls the specified callback method when the image is ready.