Changeset 32556 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionSaveRasterAs.java
- Timestamp:
- 2016-07-04T14:18:17+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionSaveRasterAs.java
r32060 r32556 1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others1 // License: GPL. For details, see LICENSE file. 2 2 package cadastre_fr; 3 3 … … 43 43 return file.getName().toLowerCase().endsWith(".png"); 44 44 } 45 45 46 @Override 46 47 public String getDescription() { … … 57 58 return file.getName().toLowerCase().endsWith(".tif"); 58 59 } 60 59 61 @Override 60 62 public String getDescription() { … … 82 84 file = fc.getSelectedFile(); 83 85 BufferedImage bi = wmsLayer.getImage(0).image; 84 if (fc.getFileFilter().equals(filtrePng)) 85 { 86 if (fc.getFileFilter().equals(filtrePng)) { 86 87 if (!file.getName().endsWith(".png")) 87 88 file = new File(file.getParent(), file.getName()+".png"); … … 98 99 e.printStackTrace(); 99 100 } 100 } 101 else if (fc.getFileFilter().equals(filtreTiff)) 102 { 101 } else if (fc.getFileFilter().equals(filtreTiff)) { 103 102 boolean alpha = bi.getColorModel().hasAlpha(); 104 103 Main.info("image with alpha channel : " + alpha);
Note:
See TracChangeset
for help on using the changeset viewer.