Changeset 32556 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/ImageModifier.java
- Timestamp:
- 2016-07-04T14:18:17+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/ImageModifier.java
r30701 r32556 1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others 2 // Some of the procedures below are imported from image4j.sourceforge.net, license LGPL. 1 // License: GPL. For details, see LICENSE file. 3 2 package cadastre_fr; 4 3 … … 25 24 protected BufferedImage convert1(BufferedImage src) { 26 25 IndexColorModel icm = new IndexColorModel( 27 1, 2, new byte[] { (byte) 0, (byte) 0xFF }, 28 new byte[] { (byte) 0, (byte) 0xFF }, 29 new byte[] { (byte) 0, (byte) 0xFF } 26 1, 2, 27 new byte[] {(byte) 0, (byte) 0xFF}, 28 new byte[] {(byte) 0, (byte) 0xFF}, 29 new byte[] {(byte) 0, (byte) 0xFF} 30 30 ); 31 31 … … 113 113 114 114 public boolean isBuildingColor(int rgb, boolean ignoreParcelColor) { 115 for (int i = 0; i < cBuilingFootColors.length; i++) 115 for (int i = 0; i < cBuilingFootColors.length; i++) { 116 116 if (rgb == cBuilingFootColors[i]) 117 117 return true; 118 } 118 119 if (ignoreParcelColor && (rgb == parcelColor)) 119 120 return true; … … 122 123 123 124 public boolean isRoofColor(int rgb, boolean ignoreParcelColor) { 124 for (int i = 0; i < cRoofColors.length; i++) 125 for (int i = 0; i < cRoofColors.length; i++) { 125 126 if (rgb == cRoofColors[i]) 126 127 return true; 128 } 127 129 if (ignoreParcelColor && (rgb == parcelColor)) 128 130 return true; … … 153 155 /** 154 156 * Checks if the rgb value is the black background color 155 * @param156 * @return157 157 */ 158 158 public boolean isBackgroundColor(BufferedImage img, int x, int y) {
Note:
See TracChangeset
for help on using the changeset viewer.
