Changeset 31044 in osm for applications/editors/josm/plugins/seachart/jicons/src/jicons/Jicons.java
- Timestamp:
- 2015-03-03T17:08:26+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/jicons/src/jicons/Jicons.java
r30894 r31044 19 19 import java.awt.Dimension; 20 20 import java.awt.Graphics2D; 21 import java.awt.Rectangle; 21 22 import java.awt.geom.Point2D; 22 23 import java.awt.image.BufferedImage; … … 31 32 32 33 import s57.S57map; 33 import s57.S57map.Feature; 34 import s57.S57map.Snode; 34 import s57.S57map.*; 35 35 import render.*; 36 import render.Rules.RuleSet; 36 37 37 38 public class Jicons { … … 78 79 img = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); 79 80 g2 = img.createGraphics(); 80 Renderer.reRender(g2, 16, s / Renderer.symbolScale[16], map, context);81 Renderer.reRender(g2, RuleSet.SEAMARK, new Rectangle(x, y, w, h), 16, s / Renderer.symbolScale[16], map, context); 81 82 try { 82 83 ImageIO.write(img, "png", new File(args[1] + file + ".png")); … … 92 93 SVGGraphics2D svgGenerator = new SVGGraphics2D(document); 93 94 svgGenerator.setSVGCanvasSize(new Dimension(w, h)); 94 Renderer.reRender(svgGenerator, 16, s / Renderer.symbolScale[16], map, context);95 Renderer.reRender(svgGenerator, RuleSet.SEAMARK, new Rectangle(x, y, w, h), 16, s / Renderer.symbolScale[16], map, context); 95 96 boolean useCSS = true; 96 97 Writer out = null;
Note:
See TracChangeset
for help on using the changeset viewer.