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.
hasViewbox parameter allows to set the viewbox of the resulting svg document. The viewbox will have the width and height of the svg document It is false by default.
allowTransformForRoot parameter allows to allow transformations on the root of the svg document. It is true by default.
background parameter allows to set the background color of the resulting svg document. The converter will generate a rectangle with the width and height of the svg document as the first child.
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