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.
Takes a snapshot of this scene at the next frame and calls the specified callback method when the image is ready.