JDK-8101205 : JavaFX needs support for printing and rendering scenes into an image
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-06-05
  • Updated: 2015-06-16
  • Resolved: 2011-06-06
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description
The JavaFX installation contains a demo application named Charts Sampler which is a good example of what JavaFX might be used for. But in practice JavaFX would be completely useless for building such an application because typically you would not only want to see some nice charts on the screen but you would also like to print them or render them into an image in order to create a report with them. To my knowledge JavaFX currently does not support printing of scenes or rendering them into an image so its practical use is drastically limited. The minimum requirement is support for rendering into an image which you could also use for printing. Of course there also must be official support to store such an image to a file and to convert it into an old BufferdImage. I know of the to/fromExternalImage methods but I am not sure whether they are official because they are flagged as implementation dependent and are currently not documented.

In addition it would also be nice to be able to render into some vector based file, but that is not so important.
Comments
Rendering to an image and printing are somewhat related requests that will be tracked separately (RT-14038 and RT-13843). Both of them will be considered for the next release after 2.0.
06-06-2011