Changeset 24955 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
- Timestamp:
- 2011-01-03T11:16:46+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
r24934 r24955 46 46 public GeorefImage(BufferedImage img, EastNorth min, EastNorth max) { 47 47 image = img; 48 48 49 49 this.min = min; 50 50 this.max = max; … … 141 141 } 142 142 } 143 g.drawImage(image, minPt.x, maxPt.y, maxPt.x, minPt.y, // dest 144 0, 0, image.getWidth(), image.getHeight(), // src 145 null); 143 g.drawImage(image, minPt.x, maxPt.y, maxPt.x, minPt.y, // dest 144 0, 0, image.getWidth(), image.getHeight(), // src 145 null); 146 146 if (backgroundTransparent && transparency < 1.0f) 147 147 g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f)); … … 237 237 out.writeDouble(orgCroppedRaster[2].getX()); out.writeDouble(orgCroppedRaster[2].getY()); 238 238 out.writeDouble(orgCroppedRaster[3].getX()); out.writeDouble(orgCroppedRaster[3].getY()); 239 out.writeInt(imageOriginalHeight); 240 out.writeInt(imageOriginalWidth); 239 // Write image as a format 3 if cache was loaded with this format to avoid incompatibilities. 240 if (WMSLayer.currentFormat >= 4) { 241 out.writeInt(imageOriginalHeight); 242 out.writeInt(imageOriginalWidth); 243 } 241 244 ImageIO.write(image, "png", ImageIO.createImageOutputStream(out)); 242 245 }
Note:
See TracChangeset
for help on using the changeset viewer.
