Changeset 13784 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
- Timestamp:
- 2009-02-18T23:31:32+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
r13497 r13784 16 16 import java.io.Serializable; 17 17 import javax.imageio.ImageIO; 18 18 19 import org.openstreetmap.josm.data.coor.EastNorth; 19 20 import org.openstreetmap.josm.gui.NavigatableComponent; 20 import org.openstreetmap.josm.tools.ColorHelper;21 21 22 22 public class GeorefImage implements Serializable { … … 181 181 int heightYMaskPixel = Math.abs((int) ((maxMaskNorth - minMaskNorth) / pixelPerNorth)); 182 182 Graphics g = image.getGraphics(); 183 int josmBackgroundColor = ColorHelper.html2color(CadastrePlugin.colorBackground).getRGB();184 183 for (int x = minXMaskPixel; x < minXMaskPixel + widthXMaskPixel; x++) 185 184 for (int y = minYMaskPixel; y < minYMaskPixel + heightYMaskPixel; y++) 186 if (CadastrePlugin.alterColors) 187 image.setRGB(x, y, josmBackgroundColor); 188 else 189 image.setRGB(x, y, ImageModifier.cadastreBackground); 185 image.setRGB(x, y, ImageModifier.cadastreBackgroundTransp); 190 186 g.dispose(); 191 187 }
Note:
See TracChangeset
for help on using the changeset viewer.
