Changeset 31031 in osm for applications/editors/josm/plugins/seachart/jrender/src
- Timestamp:
- 2015-02-20T12:34:09+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/jrender/src/jrender/Jrender.java
r31028 r31031 210 210 } 211 211 212 // img = new BufferedImage(256, 256, BufferedImage.TYPE_INT_ARGB); 213 Rectangle rect = new Rectangle(2048, 2048); 212 int size = 256; 213 for (int i = 0; i < (12 - zoom); i++) size *= 2; 214 Rectangle rect = new Rectangle(size, size); 214 215 img = new BufferedImage(rect.width, rect.height, BufferedImage.TYPE_INT_ARGB); 215 216 Renderer.reRender(img.createGraphics(), rect, zoom, 0.05, map, context); … … 218 219 // empty = bos.size(); 219 220 // tile(zoom, 1, 0, 0); 220 FileOutputStream fos = new FileOutputStream(dstdir + "tst_" + zoom + ".png"); 221 FileOutputStream fos = new FileOutputStream(dstdir + "tst_" + zoom + "-" + xtile + "-" + ytile + ".png"); 221 222 bos.writeTo(fos); 222 223 fos.close(); … … 232 233 // svgGenerator.translate(-256, -256); 233 234 Renderer.reRender(svgGenerator, rect, zoom, 0.05, map, context); 234 svgGenerator.stream(dstdir + "tst_" + zoom + ".svg"); 235 svgGenerator.stream(dstdir + "tst_" + zoom + "-" + xtile + "-" + ytile + ".svg"); 235 236 // } 236 237 }
Note:
See TracChangeset
for help on using the changeset viewer.