I wrote an FX desktop app to create an vector image and saved as png. I would like to use this FX program like a library.
For example, to use it in glassfish managed bean to generate image and saved to a directory. Can this be done? I am wondering how to call FX, pass in parameters, generate and safe the graph WITHOUT firing up as a desktop app.
Just want to use FX to create an image in buffer image, save and return me a link to that image. Java calling javxFX to produced the required image.
I already wrote a working FX. Hopefully it works without having to write another apps to do the job.
This feature is [url http://javafx-jira.kenai.com/browse/RT-14038]planned, but not yet publicly supported. It appears to have been scheduled for Lombard, the version after 2.0. If you need this feature now, there is still a hack available: Image conversion between AWT and FX