toNativeImage

fun GpuTexture.toNativeImage(mipLevel: Int = 0): CompletableFuture<NativeImage>

See also

Screenshot.takeScreenshot

fun BufferedImage.toNativeImage(): NativeImage