Home
Categories
Dictionnary
Download
Project Details
FAQ
License

JavaFX to svg conversion usage


You use the library by calling one of the SVGConverter.convert methods. For example:

      SVGConverter converter = new SVGConverter();
      converter.convert(<my JavaFX root>, <my SVG file>);

Parameters

Main Article: ConverterParameters

By default the width and the height of the resulting svg document are those of the root node bounds. However several parameters allow to configure the result. For example:

      ConverterParameters params = new ConverterParameters();
      params.width = 150;
      params.height = 150;      
      SVGConverter converter = new SVGConverter();
      converter.convert(<my JavaFX root>, params, <my SVG file>);


Categories: tosvg

Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License