Class ImageExporter



  • public class ImageExporter
    extends Object
    • Constructor Detail

      • ImageExporter

        public ImageExporter(int zoom,
                             Selection<Longitude,Latitude> selection,
                             TileConfig tileConfig)
        Create a new ImageExporter instance for the specified zoom level and selection
        Parameters:
        zoom - the zoom level to use for exporting
        selection - the selection to export
        tileConfig - the tile configuration to use
      • ImageExporter

        public ImageExporter(int zoom,
                             BBox bbox,
                             TileConfig tileConfig)
        Create a new ImageExporter instance for the specified zoom level and bounding box.
        Parameters:
        zoom - the zoom level to use for the export.
        bbox - the bounding box to show.
        tileConfig - the tile configuration to use
      • ImageExporter

        public ImageExporter(BBox bbox,
                             int width,
                             int height,
                             TileConfig tileConfig)
        Create a new ImageExporter instance for the specified bounding box to be covered with in an image of the denoted size.
        Parameters:
        bbox - the bounding box to cover
        width - the width of the image
        height - the height of the image
        tileConfig - the tile configuration to use.
    • Method Detail

      • getMapWindow

        public MapWindow getMapWindow()
        Get the map window the is used within this instance.
        Returns:
        the map window.
      • export

        public void export(String filenameExport)
        Perform exporting.
        Parameters:
        filenameExport - the file's name to use for saving the image.
      • export

        public BufferedImage export()
        Perform exporting.
        Returns:
        the image created.