org.osm2world.console
Class ImageExporter
Object
ImageExporter
public class ImageExporter
- extends Object
Methods inherited from class Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageExporter
public ImageExporter(Configuration config,
ConversionFacade.Results results,
CLIArgumentsGroup expectedGroup)
- Creates an
ImageExporter
for later use.
Also performs calculations that only need to be done once for a group
of files, based on a CLIArgumentsGroup
.
- Parameters:
expectedGroup
- group that should contain at least the arguments
for the files that will later be requested.
Basis for optimization preparations.
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
freeResources
public void freeResources()
- manually frees resources that would otherwise remain used
until the finalize call. It is no longer possible to use
writeImageFile(File, CLIArgumentsUtil.OutputMode, int, int, Camera, Projection)
afterwards.
writeImageFile
public void writeImageFile(File outputFile,
CLIArgumentsUtil.OutputMode outputMode,
int x,
int y,
Camera camera,
Projection projection)
throws IOException
- renders this ImageExporter's content to a file
- Parameters:
outputMode
- one of the image output modesx
- horizontal resolutiony
- vertical resolution
- Throws:
IOException