JDK-8100584 : Need public API for rendering to an image and converting to BufferedImage
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-06-06
  • Updated: 2015-06-16
  • Resolved: 2012-04-05
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Currently there are internal API methods that will render a Scene to a platform image, and convert a platform image to a BufferedImage. In order for them to be generally available to applications, we need to make these APIs publicly available and supported.
Comments
This functionality is covered by RT-17398 and RT-17409, both of which are scheduled for 2.2.
05-04-2012

Note that we also need ways of creating an image from raw RGBA data. Not by painting a Scene or using drawing primitives. Imagine I have a proprietary video capture card and I need to get that video input painted on the screen. That means I'm not obtaining the image via standard media capture APIs of the host platform, but ultimately I have a stream of raster data that needs to get rendered into the scene in realtime. We could get by in the short term by copying the data into an Image somehow... but ideally it would be great to go straight to the display. If possible a way for using JNI to render directly into a texture would be good - some JavaFX equivalent to the native JAWT methods.
24-02-2012

Also: rendering of documents build with Java FX API need to be rendered to different medias (ex: render to image, render to PDF, render to a printer) so a way to that would be nice. Use case: I build one fx scene mixing HTML and charts, and need to generate a PDF from it to mail it to customers. Direct users of the app would like to print it,
18-02-2012

Believe this is related: https://forums.oracle.com/forums/message.jspa?messageID=10014892
08-02-2012

What specific APIs need to be made public? Was there any reason these were made internal and not external?
08-02-2012