|Description:||This plugin imports HPGL (Hewlett Packard Graphics Language) files, which were used mostly for driving pen plotters before the advent of laser printers and PostScript, but still aren't uncommon in scientific and engineering applications today.|
|Installation:||You can download the source file HPGL_Reader.java and compile it using the "Compile and Run" command, or download the class file HPGL_Reader.class and put it into the plugins folder. After restarting ImageJ, it should show up in the plugins menu.|
The plugin supports the following HPGL commands. If you find some features
that are not available or seem buggy, send me the file in question and the expected
image, and I'll see what I can do.
|Notes and Limitations:||
In keeping with HPGL, an output format of A4 landscape is assumed.
By setting "isA4" to false in the source code, A3 can be chosen.
In macro mode, this can also be done by setting a parameter: "a4=false".
The Java2D features are rather slow, due to a lot of image copying back and forth between ImageJ and Java2D images. But they're only used if absolutely necessary, e.g. if text really is at a non-zero angle, or lines really aren't supposed to be solid. In macro mode those features can be turned off by using "usejava2d=false" as parameter.
The results of using the plugin aren't pixel-by-pixel copies of what a real plotter would generate. In writing it I perused several HPGL-reading source codes and descriptions found on the Internet, but the closest I found to a reference was this page.
I don't know if there are standard sequences of colors and line dash patterns
which are selected by the SP and LT commands, so I came up with my own. They can be
changed easily by adapting the