Ignore:
Timestamp:
2009-02-18T23:31:32+01:00 (17 years ago)
Author:
pieren
Message:

Fix minor bugs, add the fixed size grab scale configurable, fix pbls in transparency.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java

    r13497 r13784  
    1616import java.io.Serializable;
    1717import javax.imageio.ImageIO;
     18
    1819import org.openstreetmap.josm.data.coor.EastNorth;
    1920import org.openstreetmap.josm.gui.NavigatableComponent;
    20 import org.openstreetmap.josm.tools.ColorHelper;
    2121
    2222public class GeorefImage implements Serializable {
     
    181181            int heightYMaskPixel = Math.abs((int) ((maxMaskNorth - minMaskNorth) / pixelPerNorth));
    182182            Graphics g = image.getGraphics();
    183             int josmBackgroundColor = ColorHelper.html2color(CadastrePlugin.colorBackground).getRGB();
    184183            for (int x = minXMaskPixel; x < minXMaskPixel + widthXMaskPixel; x++)
    185184                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);
    190186            g.dispose();
    191187        }
Note: See TracChangeset for help on using the changeset viewer.