How do I generate a JPEG of a tree map?

I need to generate a JPG image from the treemap from a .NET application. I believe the easiest way to accomplish the integration is if the treemap provided a command line interface. Do you provide a command line interface to the treemap for such an operation?

The ImageWriter tool can be used to automatically generate a JPEG of any tree map. To use the ImageWriter tool, use the following command:

java -cp <tree map jar> <overrides>
         com.labescape.config.tools.ImageWriter <options>

Usage:
   <tree map jar>     path to the tree map JAR
   <overrides>        configuration property overrides
                      prefixed with -D
   <options>
     -c               path to the configuration files
     -s               path to the schema files
     -o               name of the output file
     -w               width of the image, default: 640
     -h               height of the image, default: 400

Examples:

   java -cp treemap-2.1.1.jar
        com.labescape.config.tools.ImageWriter
        -c config.xml,license.xml
        -s schema-swing.xml
        -o MyImage.jpg

   Outputs a 640 x 400 JPEG to MyImage.jpg of the entire layout
   using configuration files in the current directory.


   java -cp treemap-2.1.1.jar
        -Dconfig@root=config.treemap
        com.labescape.config.tools.ImageWriter
        -c config.xml,license.xml
        -s schema-swing.xml
        -w 800
        -h 600
        -o MyImage.jpg

   Outputs a 800 x 600 JPEG to MyImage.jpg of just the tree map
   using configuration files in the current directory.

The ImageWriter tool requires Java 1.4 or higher. It will take a screenshot of whatever component is specified by the config@root property. Usually this includes the entire tree map and all of its controls. To take a screenshot of just the tree map itself, override the config@root property by passing in the following override:

-Dconfig@root=config.treemap