Changeset 22929 in osm for applications/editors/josm
- Timestamp:
- 2010-09-01T20:45:20+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/wmsplugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java
r22854 r22929 99 99 100 100 private BufferedImage createImage() { 101 return new BufferedImage(layer.get ImageWidth(xIndex), layer.getImageHeight(yIndex), BufferedImage.TYPE_INT_RGB);101 return new BufferedImage(layer.getBaseImageWidth(), layer.getBaseImageHeight(), BufferedImage.TYPE_INT_RGB); 102 102 } 103 103 … … 217 217 return yIndex; 218 218 } 219 219 220 220 public void setLayer(WMSLayer layer) { 221 221 this.layer = layer; 222 222 } 223 223 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Grabber.java
r22794 r22929 52 52 53 53 int width(){ 54 return layer.get ImageWidth(request.getXIndex());54 return layer.getBaseImageWidth(); 55 55 } 56 56 int height(){ 57 return layer.get ImageHeight(request.getYIndex());57 return layer.getBaseImageHeight(); 58 58 } 59 59 -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
r22902 r22929 297 297 /** 298 298 * 299 * @return Size of image in original zoom 300 */ 301 public int getBaseImageWidth() { 302 int overlap = (WMSPlugin.PROP_OVERLAP.get()?WMSPlugin.PROP_OVERLAP_EAST.get() * imageSize / 100:0); 303 return imageSize + overlap; 304 } 305 306 /** 307 * 308 * @return Size of image in original zoom 309 */ 310 public int getBaseImageHeight() { 311 int overlap = (WMSPlugin.PROP_OVERLAP.get()?WMSPlugin.PROP_OVERLAP_NORTH.get() * imageSize / 100:0); 312 return imageSize + overlap; 313 } 314 315 316 /** 317 * 299 318 * @param xIndex 300 319 * @param yIndex
Note:
See TracChangeset
for help on using the changeset viewer.