Java Reference
In-Depth Information
How to do it...
For this recipe, we are going to walk through the steps of exporting graphics objects from an
SVG file to JavaFX's FXZ file format for creative content integration.
1. First, you should ensure that you have installed the Production Suite tools properly,
and you can launch SVG Converter.
2. Next, create your artwork using your favorite vector graphics package, and save it
as an SVG file. For this recipe, we will be using an SVG file that was created with
Illustrator and is located ch08/source-code/resources/Symbols.svg . The
following figure shows the SVG file used for this recipe:
3. Now, launch the SVG Converter utility tool that ships with the Production Suite. The
converter has a simple interface (see next screenshot), where you only need to select
the source SVG file being converted and a destination where the generated FXZ file
will be stored.
Once you click on the Convert button, the utility will convert your SVG file to the FXZ file format
at the location specified.
How it works...
Similar to the Adobe Illustrator Production Suite plugin, the SVG Converter utility converts
the vector graphics in the SVG file to produce a single JavaFX FXZ file containing all of the
graphical assets exported from the SVG artwork. The plugin attempts to translate SVG objects
directly into their JavaFX's vector counterparts wherever possible. Let's see how the exported
file format works:
F The FXZ file —when you export your graphics objects from SVG using the Production
Suite's SVG Converter, the resulting FXZ file is a zip-compressed file containing one
data file, content.fxd . Additionally, the FXZ file will also contain other graphical
assets exported from the original SVG artwork, such as linked or embedded images,
and fonts.
 
Search WWH ::




Custom Search