JDK-8101334 : Render Node to Image
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-05-24
  • Updated: 2015-06-16
  • Resolved: 2012-04-05
Related Reports
Duplicate :  
Relates :  
Description
It would be really useful to render any given node with all effects etc into a Image buffer. Including alpha for anywhere the node doesn't draw. We already must be able to do this internally to implement Node.cache = true.

There are three main use cases for this:

(1) In tools/apps where I want icon versions or zoomed version of some nodes.
(2) For performance where I am rendering a expensive set of nodes many times, ie colorful circles.
(3) Where I want to save out the nodes to a image file like JPEG or PNG. This will also require fx image to Java2D BufferedImage conversion API or a Image save API.
Comments
It should not be a problem. We don`t have scene in rendering context for offscreen rendering. A node is enought.
04-10-2011

Seems like a useful thing to have, but for this release, there are workarounds and we really cannot take on any new features at this point. Target for Lombard.
25-05-2011