How would I go about writing a javafx.scene.image.Image image to a file. I know you can use ImageIO on BufferedImages but is there any way to do it with a javafx Image?
Just convert it to a BufferedImage first, using javafx.embed.swing.SwingFXUtils:
BufferedImage
javafx.embed.swing.SwingFXUtils
Image image = ... ; // javafx.scene.image.Image String format = ... ; File file = ... ; ImageIO.write(SwingFXUtils.fromFXImage(image, null), format, file);