Save the image painted by JavaFX to the disk
963782Oct 4 2012 — edited Jun 19 2013We can save the image painted by JavaSE to the disk by this way:
ImageIO.write(BufferedImage bi);
Graphics g = bi.getGraphics();
g.draw...
In JavaFX, Canvas is considered as a Node, we can use canvas.getGraphicsContext2D() to paint. But how we save these images painted ?
Thanks.