Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Save the image painted by JavaFX to the disk

963782Oct 4 2012 — edited Jun 19 2013
We 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.
This post has been answered by shakir.gusaroff on Oct 4 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2013
Added on Oct 4 2012
6 comments
44,770 views