Changeset 19180 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor
- Timestamp:
- 2024-08-12T17:35:51+02:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledTiledMapRenderer.java
r19176 r19180 251 251 temporaryView.zoomTo(bounds.getCenter().getEastNorth(ProjectionRegistry.getProjection()), mapState.getScale()); 252 252 BufferedImage bufferedImage = Optional.ofNullable(nc.getGraphicsConfiguration()) 253 .map(gc -> gc.createCompatibleImage(tileSize * xCount + xCount, tileSize * yCount + xCount, Transparency.TRANSLUCENT))254 .orElseGet(() -> new BufferedImage(tileSize * xCount + xCount, tileSize * yCount + xCount, BufferedImage.TYPE_INT_ARGB));253 .map(gc -> gc.createCompatibleImage(tileSize * xCount + xCount, tileSize * yCount + yCount, Transparency.TRANSLUCENT)) 254 .orElseGet(() -> new BufferedImage(tileSize * xCount + xCount, tileSize * yCount + yCount, BufferedImage.TYPE_INT_ARGB)); 255 255 Graphics2D g2d = bufferedImage.createGraphics(); 256 256 try { … … 335 335 * @param tImage The tile image for this job 336 336 */ 337 private synchronizedvoid cacheTile(BufferedImage tImage) {337 private void cacheTile(BufferedImage tImage) { 338 338 cache.put(tile, new ImageCache(tImage, null, false)); 339 339 done = true;
Note:
See TracChangeset
for help on using the changeset viewer.