Changeset 32556 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/VectorImageModifier.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/VectorImageModifier.java
r20390 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 … … 7 7 import java.awt.image.IndexColorModel; 8 8 import java.awt.image.WritableRaster; 9 9 10 import org.openstreetmap.josm.Main; 10 11 import org.openstreetmap.josm.tools.ColorHelper; … … 13 14 14 15 private int cadastreBackground = -1; // white 15 16 16 17 public static int cadastreBackgroundTransp = 1; // original white but transparent 17 18 18 19 private int backgroundPixel = 0; 19 20 20 public VectorImageModifier() {super();} 21 21 public VectorImageModifier() { 22 super(); 23 } 24 22 25 public VectorImageModifier(BufferedImage bi, boolean monocolor) { 23 26 bufferedImage = bi; … … 70 73 * Reverse the grey value if the pixel is grey (light grey becomes dark grey) 71 74 * Used for texts. 72 * @param pixel73 * @return74 75 */ 75 76 private int reverseIfGrey(int pixel) {
Note:
See TracChangeset
for help on using the changeset viewer.