Home
Categories
Dictionnary
Download
Project Details
FAQ
License

Converter Parameters


    1  Parameters
       1.1  width
       1.2  height
    2  Example
    3  See also

The ConverterParameters class allows to configure the exporting of the JavaFX tree to a svg file with the SVGConverter.

Parameters

width

The 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

The 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.

Example

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>);

See also


Categories: tosvg

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