JDK-8102435 : Remove impl_* methods for RenderToImage and BufferedImage conversion
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-01-02
  • Updated: 2015-06-16
  • Resolved: 2013-01-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Relates :  
Description
The following "quasi-public" methods were added in JavaFX 2.0 to support rendering to an image (snapshot) and conversion to / from a BufferedImage before public API was available:

Scene:
    renderToImage(Object)
    renderToImage(Object,float)

Image:
    impl_toExternalImage(Object)
    impl_fromExternalImage(Object)
    impl_isExternalFormatSupported(Class)

In JavaFX 2.2 we added public API to support these needs, but left the unsupported methods to allow the internal users (primarily scene builder and JDeveloper) time to migrate. In FX 8 we need to remove these methods.

Comments
just remarking that we have made the adjustment in NetBeans, cf. http://netbeans.org/bugzilla/show_bug.cgi?id=224827
11-02-2013

Note that the replacements for these methods are as follows: Scene.renderToImage ==> Scene.snapshot Image.impl_toExternalImage ==> SwingFXUtils.fromFXImage impl_fromExternalImage ==> SwingFXUtils.toFXImage
09-01-2013

Note that all of these methods are already marked "@Deprecated" and "@treatAsPrivate" so they are not part of the public API, just like all of the other impl_* methods in JavaFX.
03-01-2013