Changeset 35685 in osm for applications/editors/josm/plugins/seachart/jchart/src
- Timestamp:
- 2021-01-13T10:42:07+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/jchart/src/jchart/Jchart.java
r35404 r35685 4 4 import java.awt.Color; 5 5 import java.awt.Dimension; 6 import java.awt.Font; 6 7 import java.awt.Graphics2D; 7 8 import java.awt.Rectangle; … … 127 128 public static void main(String[] args) throws Exception { 128 129 if (args.length < 4) { 129 System.err.println("Usage: java -jar j render.jar <osm data file> <zoom> <scale> <output image file> [<bounds (S W N E)>]");130 System.err.println("Usage: java -jar jchart.jar <osm data file> <zoom> <scale> <output image file> [<bounds (S W N E)>]"); 130 131 System.exit(-1); 131 132 } … … 152 153 Graphics2D g2 = img.createGraphics(); 153 154 Renderer.reRender(g2, new Rectangle((int) size.getX(), (int) size.getY()), zoom, Double.parseDouble(args[2]), map, context); 155 156 //Renderer.labelText("000", new Font("Arial", Font.PLAIN, 20), Color.red); 154 157 try { 155 158 ImageIO.write(img, "png", new File(args[3]));
Note:
See TracChangeset
for help on using the changeset viewer.