ConverterParameters
class allows to configure the exporting of the JavaFX tree to a svg file with the SVGConverter.
width
parameter allows to set the width of the resulting svg document. If not set, by default the width will be the width of the root node bounds.
height
parameter allows to set the height of the resulting svg document. If not set, by default the width will be the height of the root node bounds.
ConverterParameters params = new ConverterParameters(); params.width = 150; params.height = 150; SVGConverter converter = new SVGConverter(); converter.convert(<my JavaFX root>, params, <my SVG file>);
Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License